Examples of ShellAdapter


Examples of org.eclipse.swt.events.ShellAdapter

  public void showPeriodeForms() {
    try {

      shell = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER | SWT.RESIZE);

      shell.addShellListener(new ShellAdapter() {
        public void shellClosed(final ShellEvent e) {
          if(!closeDialog)
            close();
          e.doit = shell.isDisposed();
        }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  }

  public void showProcessForm() {

    processShell = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
    processShell.addShellListener(new ShellAdapter() {
      public void shellClosed(final ShellEvent e) {
        if(!closeDialog)
          close();
        e.doit = processShell.isDisposed();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter


  public void showTimeOutForm() {

    shellTimeout = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
    shellTimeout.addShellListener(new ShellAdapter() {
      public void shellClosed(final ShellEvent e) {
        if(!closeDialog)
          close();
        e.doit = shellTimeout.isDisposed();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter


  public void showTimeOutForm() {

    shellTimeout = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
    shellTimeout.addShellListener(new ShellAdapter() {
      public void shellClosed(final ShellEvent e) {
        if(!closeDialog)
          close();
        e.doit = shellTimeout.isDisposed();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter


  public void showScriptForm() {

    scriptShell = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
    scriptShell.addShellListener(new ShellAdapter() {
      public void shellClosed(final ShellEvent e) {
        if(!closeDialog)
          close();
        e.doit = scriptShell.isDisposed();
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

        // LISTENERS

        // Query JPM and show results *after* dialog is shown. This ensures progress is visible in the dialog's
        // progress bar
        getContainer().getShell().addShellListener(new ShellAdapter() {
            @Override
            public void shellActivated(ShellEvent e) {
                runQuery();
            }
        });
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

        // LISTENERS

        // Query JPM and show results *after* dialog is shown. This ensures progress is visible in the dialog's
        // progress bar
        getContainer().getShell().addShellListener(new ShellAdapter() {
            @Override
            public void shellActivated(ShellEvent e) {
                runQuery();
            }
        });
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    };

    wStepname.addSelectionListener(lsDef);

    // Detect X or ALT-F4 or something that kills this window...
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        if (!cancel()) {
          e.doit = false;
        }
        ;
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
   */
  protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setText(JFaceResources.getString("PreferenceDialog.title")); //$NON-NLS-1$
    newShell.addShellListener(new ShellAdapter() {
      public void shellActivated(ShellEvent e) {
        if (lastShellSize == null) {
          lastShellSize = getShell().getSize();
        }
      }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * </p>
   *
   * @return a shell listener
   */
  protected ShellListener getShellListener() {
    return new ShellAdapter() {
      public void shellClosed(ShellEvent event) {
        event.doit = false; // don't close now
        if (canHandleShellCloseEvent()) {
          handleShellCloseEvent();
        }
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.