コード例 #1
0
  public void handleStop() {
    toolbar.activate(JavaToolbar.STOP);

    try {
      // jmode.handleStop();
      if (runtime != null) {
        runtime.close(); // kills the window
        runtime = null;
        //      } else {
        //        System.out.println("runtime is null");
      }
    } catch (Exception e) {
      statusError(e);
    }

    toolbar.deactivate(JavaToolbar.RUN);
    toolbar.deactivate(JavaToolbar.STOP);

    // focus the PDE again after quitting presentation mode [toxi 030903]
    toFront();
  }