Examples of ShellAdapter


Examples of org.eclipse.swt.events.ShellAdapter

        wPrivateKey.addSelectionListener( lsDef );
        wS3Bucket.addSelectionListener( lsDef );
        wFilename.addSelectionListener(lsDef);
             
    // Detect X or ALT-F4 or something that kills this window...
    shell.addShellListenernew ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } );
       
    getData();
   
    BaseStepDialog.setSize(shell);
    shell.pack();
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

        // logger.debug("PC: " +
        // getTableComposite().getPlayerSeatComposites(false).get(0).getBounds());
        // logger.debug("GW: " + getShell().getBounds());
      }
    });
    shell.addShellListener(new ShellAdapter() {
     
      /**
       * @see org.eclipse.swt.events.ShellAdapter#shellClosed(org.eclipse.swt.events.ShellEvent)
       */
      @Override
 
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * This method blocks until the user has either
   * <li>disposed of this dialog
   * <li>pressed the <code>Login</code> button
   */
  public void open() {
    getParent().addShellListener(new ShellAdapter() {
     
      @Override
      public void shellClosed(ShellEvent e) {
        if (!loginButton.isFocusControl())
          System.exit(0);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    final Shell shell = getShell();
    final Display display = shell.getDisplay();
    shell.setText("CSPoker - Logged in as " + getClientCore().getUser().getUserName());
    shell.setLayout(new FillLayout());
    shell.setSize(getSize());
    shell.addShellListener(new ShellAdapter() {

      /**
       * Upon close, the display is disposed. This will stop all Game
       * windows from listening to events and initiate their shutdown hook
       *
 
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

      this.display = display;
      display.syncExec(new Runnable() {

        public void run() {
          shell = new Shell(display);
          shell.addShellListener(new ShellAdapter() {
            @Override
            public void shellClosed(ShellEvent e) {
              e.doit = false;
            }
          });
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

      this.display = display;
      display.syncExec(new Runnable() {

        public void run() {
          shell = new Shell(display);
          shell.addShellListener(new ShellAdapter() {
            @Override
            public void shellClosed(ShellEvent e) {
              e.doit = false;
            }
          });
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  public BrowserShellLinux() {
    m_shell = new Shell();
    m_shell.setLayout(new FillLayout());
    m_shell.setLocation(-10000, -10000);
    // prevent close, hide instead
    m_shell.addShellListener(new ShellAdapter() {
      @Override
      public void shellClosed(ShellEvent e) {
        e.doit = false;
        Shell shell = (Shell) e.widget;
        shell.setVisible(false);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  public BrowserShellIE() {
    m_shell = new Shell(SWT.SHELL_TRIM | SWT.APPLICATION_MODAL);
    m_shell.setLayout(new FillLayout());
    m_shell.setLocation(-10000, -10000);
    // prevent close, hide instead
    m_shell.addShellListener(new ShellAdapter() {
      @Override
      public void shellClosed(ShellEvent e) {
        e.doit = false;
        Shell shell = (Shell) e.widget;
        shell.setMinimized(false);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  /**
   * Create contents of the dialog.
   */
  protected void createContents() {
    shell.addShellListener(new ShellAdapter() {
      @Override
      public void shellClosed(ShellEvent e) {
        result = null;
        shell.dispose();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   */
  @Override
    protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setText(JFaceResources.getString("EditorDialog.title")); //$NON-NLS-1$
    newShell.addShellListener(new ShellAdapter() {
      @Override
            public void shellActivated(ShellEvent e) {
        if (lastShellSize == null)
          lastShellSize = getShell().getSize();
      }
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.