Exemplo n.º 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();
  }
Exemplo n.º 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();
     }
   }
 }
 public void CloseWindow() {
   display.close();
 }