@Override
public void run() {
- Toolbar.INSTANCE.startTimer();
- UpdateViewTimer.start();
- startDlog();
+ if (Global.isGUIMode()) {
+ Toolbar.INSTANCE.startTimer();
+ UpdateViewTimer.start();
+ }
+ startDlog();
}
};
}
setCancelProgress(STAGE.SEND_STARTMSG);
case START_RESOURCE_MONITOR:
- Toolbar.INSTANCE.stopTimer();
+ if (Global.isGUIMode()) {
+ Toolbar.INSTANCE.stopTimer();
+ }
UpdateViewTimer.stop();
ResourceMonitor.stop();
setCancelProgress(STAGE.START_RESOURCE_MONITOR);
UIActionHolder.getUIAction().showWarning(result);
}
- // set shortcut and toolbar UI as DA state
- ShortCutManager.getInstance().setEnabled(true);
- Toolbar.INSTANCE.changeUIState(DAState.getCurrentState());
+ if (Global.isGUIMode()) {
+ // set shortcut and toolbar UI as DA state
+ ShortCutManager.getInstance().setEnabled(true);
+ Toolbar.INSTANCE.changeUIState(DAState.getCurrentState());
+ }
}
}
}
private void setStageComplete(STAGE st) throws InterruptedException {
+ Logger.debug("done stage: " + st);
lastStage = st;
int percent = ProgressTable.getPercent(PHASE.TRACE_START, lastStage);