Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell.dispose()


            }
        }
       
        // Kill the timer
        display.timerExec(-1, runnable);
        shell.dispose();
    }
   
    /**
     * @return selected attribute in the table
     */
 
View Full Code Here


        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
            }
        }
        shell.dispose();
    }
   
    /**
     * Clears the parameter values of the operation
     */
 
View Full Code Here

    gridData.horizontalSpan = 3;
    gridData.horizontalAlignment = GridData.END;
    closeButton.setLayoutData(gridData);
    closeButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        shell.dispose();
        display.dispose();
      }
    });

    shell.pack();
View Full Code Here

    final Shell shell = new Shell(display, SWT.TITLE);
    // final Shell shell = new Shell(display);
    shell.setText("About SAM...");
    shell.addListener(SWT.Close, new Listener() {
      public void handleEvent(Event event) {
        shell.dispose();
        display.dispose();
      }
    });

    final Font bitstreamVeraSansMono9 = new Font(shell.getDisplay(), "Bitstream Vera Sans Mono", 9, SWT.NONE);
View Full Code Here

    gridData.horizontalSpan = 3;
    gridData.horizontalAlignment = GridData.END;
    closeButton.setLayoutData(gridData);
    closeButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        shell.dispose();
        display.dispose();
      }
    });

    shell.pack();
View Full Code Here

    final Shell shell = new Shell(display, SWT.TITLE);
    // final Shell shell = new Shell(display);
    shell.setText("About SAM...");
    shell.addListener(SWT.Close, new Listener() {
      public void handleEvent(Event event) {
        shell.dispose();
        display.dispose();
      }
    });

    final Font bitstreamVeraSansMono9 = new Font(shell.getDisplay(), "Bitstream Vera Sans Mono", 9, SWT.NONE);
View Full Code Here

                    }
                    log.trace("progressMonitorDialog.run done");
                }

            });
            pmdShell.dispose();
        } catch (InvocationTargetException e) {
            // TODO We can't get here, right?
            throw new IllegalStateException(e);
        } catch (InterruptedException e) {
            log.error("Code not designed to be interrupted!");
View Full Code Here

      }
      GC gc = new GC(shell);
      gc.setFont(font);
      m_fontMetrics = gc.getFontMetrics();
      gc.dispose();
      shell.dispose();
      font.dispose();
    }
    return m_fontMetrics;
  }
}
View Full Code Here

          icd.open();
        } while (icd.newImageName != null);
      }
    }

    shell.dispose();
    display.dispose();
  }
}
View Full Code Here

    String msg = "Es ist eine Exception aufgetreten!";
    msg += Statics.CRLF + exception.getMessage();
    msg += Statics.CRLF + "Das Programm wird beendet!";
    msg += Statics.CRLF + "Die Exception wird in eine Datei geschrieben...";
    SwtUtilities.sayError(shell, msg);
    shell.dispose();
  }

  /**
   * Konstruktor. Startet das Programm.
   * @param args Argumente von der Kommandozeile (noch ungenutzt).
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.