private void stopEngine() { if (Publisher.getCurrentStatus() == EngineStatus.Running) { _cycled = true; getProgressPanel().setIndeterminate(true); getProgressPanel().setText("Stopping Engine..."); if (!TomcatUtil.stop()) { showError("Failed to stop Engine. Update could not complete."); setState(State.Finalise); } } else setState(State.Update); }
// entry point - start the update process public void start() { Publisher.addEngineStatusListener(this); setState(State.Download); }
protected void finalise() { Publisher.removeEngineStatusListener(this); getProgressPanel().setVisible(false); }