public void actionPerformed(ActionEvent evt) { try { // deactivate the other buttons so the user doesn't click them now setButtonsEnabled(false); // run DConnect2 in a separate thread from AWT event thread Thread runThread = new Thread(this); runThread.start(); } catch (IllegalThreadStateException e) { outputArea.setText(e.toString()); setButtonsEnabled(true); } }
public void actionPerformed(ActionEvent evt) { try { // deactivate the other buttons so the user doesn't click them now setButtonsEnabled(false); // run DConnect2 in a separate thread from AWT event thread // NOTE: StatusWindow cancel button won't work otherwise! Thread runThread = new Thread(this); runThread.start(); } catch (IllegalThreadStateException e) { outputArea.setText(e.toString()); setButtonsEnabled(true); } }
public void actionPerformed(ActionEvent evt) { try { // deactivate the other buttons so the user doesn't click them now setButtonsEnabled(false); // run DConnect2 in a separate thread from AWT event thread Thread runThread = new Thread(this); runThread.start(); } catch (IllegalThreadStateException e) { outputArea.setText(e.toString()); setButtonsEnabled(true); } }
@Override public int getExitValue() throws DebugException { if (javaProcess == null) { if (isTerminated()) { return 0; } else { throw new DebugException(new Status( IStatus.ERROR, SDBGDebugCorePlugin.PLUGIN_ID, "Not yet terminated")); } } else { try { return javaProcess.exitValue(); } catch (IllegalThreadStateException exception) { throw new DebugException(new Status( IStatus.ERROR, SDBGDebugCorePlugin.PLUGIN_ID, exception.toString())); } } }