}
public SdbCommand(IDevice device, ITizenConsoleManager console, CommandOutputReceiver receiver) {
+ this(device, console, receiver,CommonPlugin.getDefault().getPreferenceStore().getInt(SdbPreferencePage.KEY_SDB_RESPONSE_TIMEOUT));
+ }
+
+ public SdbCommand(IDevice device, ITizenConsoleManager console, CommandOutputReceiver receiver, int timeout) {
this.device = device;
this.console = console;
this.receiver = receiver;
sdbPath = InstallPathConfig.getSDBPath();
- this.defaultTimeout = CommonPlugin.getDefault().getPreferenceStore().getInt(SdbPreferencePage.KEY_SDB_RESPONSE_TIMEOUT);
+ this.defaultTimeout = timeout;
}
public void runCommand(String command) throws Exception {