コード例 #1
0
  /* (non-Javadoc)
   * @see view.ServerView#stopRunning()
   */
  public void stopRunning() {
    MessageBox popMsg = new MessageBox(shell, SWT.ICON_INFORMATION);
    popMsg.setText("info!");
    popMsg.setMessage("A successful exit");
    popMsg.open();

    shell.close();
    display.close();
  }
コード例 #2
0
 /** Open the window. */
 public void open() {
   Display display = Display.getDefault();
   createContents();
   shlSkriptLoading.open();
   shlSkriptLoading.layout();
   while (!shlSkriptLoading.isDisposed()) {
     txtLoading.setText(text);
     progressBar.setSelection((int) (((percent + section) / sections) * 100));
     if (!display.readAndDispatch()) {
       display.sleep();
     }
     if (done) {
       display.close();
     }
   }
 }
コード例 #3
0
 public void CloseWindow() {
   display.close();
 }