Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ShellAdapter


                }
            }
        });

        if (editMode == EditModeEnum.INLINE) {
            combo.addShellListener(new ShellAdapter() {
                @Override
                public void shellClosed(ShellEvent e) {
                    close();
                }
            });
View Full Code Here


        GridLayout shellLayout = new GridLayout();
        shell.setLayout(shellLayout);
        shell.setText(Messages.getString("ColumnRenameDialog.shellTitle")); //$NON-NLS-1$

        // Closing the window is the same as canceling the form
        shell.addShellListener(new ShellAdapter() {
            @Override
            public void shellClosed(ShellEvent e) {
                doFormCancel(shell);
            }
        });
View Full Code Here

    final Display display = new Display();
    final Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());
    new LayoutExample(shell);
    shell.setText(LayoutExample.getResourceString("window.title"));
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        Shell[] shells = display.getShells();
        for (int i = 0; i < shells.length; i++)
          if (shells[i] != shell)
            shells[i].close();
View Full Code Here

    public ProgressDialog(Shell parent, int style) {
      shell = new Shell(parent, SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);
      GridLayout gridLayout = new GridLayout();
      shell.setLayout(gridLayout);
      shell.setText(FileViewer.getResourceString("progressDialog." + operationKeyName[style] + ".title"));
      shell.addShellListener(new ShellAdapter() {
        public void shellClosed(ShellEvent e) {
          isCancelled = true;
        }
      });
View Full Code Here

    shell.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent event) {
        resizeShell(event);
      }
    });
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        animate = false; // stop any animation in progress
        if (animateThread != null)
          // wait for the thread to die before disposing the shell.
          while (animateThread.isAlive())
View Full Code Here

  public Table      table;

  public Shell open(Display display) {
    shell = new Shell(display);
    shell.setLayout(new FillLayout());
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        e.doit = closeAddressBook();
      }
    });
View Full Code Here

    shell = new Shell(parent, SWT.CLOSE | SWT.BORDER | SWT.TITLE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    shell.setLayout(layout);
    shell.setText(SearchDialog.resAddressBook.getString("Search_dialog_title"));
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        // don't dispose of the shell, just hide it for later use
        e.doit = false;
        shell.setVisible(false);
      }
View Full Code Here

    shell = new Shell(display);
    shell.setText(JavaViewer.resources.getString("Window_title"));
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    shell.setLayout(layout);
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        lineStyler.disposeColors();
        text.removeLineStyleListener(lineStyler);
      }
    });
View Full Code Here

              return result;
            }
          };
          dialog.create();
          dialog.getShell().addShellListener(new ShellAdapter() {
            public void shellActivated(org.eclipse.swt.events.ShellEvent e) {
              dialogs.remove(dialog);
              dialogs.add(dialog);
            }
          });
View Full Code Here

      viewer.setInput(fInput);
      fTable.setSelection(0);

      registerTableListeners();

      getShell().addShellListener(new ShellAdapter() {

        /*
         * @see org.eclipse.swt.events.ShellAdapter#shellActivated(org.eclipse.swt.events.ShellEvent)
         */
        public void shellActivated(ShellEvent e) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.ShellAdapter

Copyright © 2018 www.massapicom. 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.