Package org.eclipse.swt.widgets

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


        }
      });

      buttonCancel.addListener(SWT.Selection, new Listener() {
        public void handleEvent(Event event) {
          shell.dispose();
        }
      });
       
        shell.addListener(SWT.Traverse, new Listener() {
          public void handleEvent(Event event) {
View Full Code Here


              selectedFields.add((IField)button.getData());
            }
          }

              generator.generate(compilationUnit, createBuilderConstructor.getSelection(), formatSourceButton.getSelection(), selectedFields);
              shell.dispose();
            } else {
              shell.dispose();
            }
          }
        };
View Full Code Here

          }

              generator.generate(compilationUnit, createBuilderConstructor.getSelection(), formatSourceButton.getSelection(), selectedFields);
              shell.dispose();
            } else {
              shell.dispose();
            }
          }
        };

        executeButton.addListener(SWT.Selection, clickListener);
View Full Code Here

        instanceLocaction.setURL(candidateWorkspaceURL, true);
        launchData.writePersistedData();
      }
    } finally {
      if (shell != null) {
        shell.dispose();
      }
    }

    try {
      int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
View Full Code Here

      createdShell = true;
      shell = new Shell();
    }
    ErrorDialog.openError(shell, title, message, status);
    if (createdShell) {
      shell.dispose();
    }
  }

  /*
   * Report a non-OK status to the user
View Full Code Here

          new String[] { IDialogConstants.OK_LABEL }, 0); // ok
      dialog.open();
    }

    if (createdShell) {
      shell.dispose();
    }

    return reportedStatus;

  }
View Full Code Here

            {
                boolean read = readButton.getSelection();
                boolean write = writeButton.getSelection();
                boolean admin = adminButton.getSelection();
               
                shell.dispose();

                HashMap<String,Boolean> results = new HashMap<String,Boolean>();
                try
                {
                    //perform the rights updates, save the results.
View Full Code Here

        cancelButton.addSelectionListener(new SelectionAdapter()
        {
            public void widgetSelected(SelectionEvent e)
            {
                shell.dispose();
            }
        });

        shell.setDefaultButton(okButton);
        shell.pack();
View Full Code Here

                    read = readButton.getSelection();
                    write = writeButton.getSelection();
                    admin = adminButton.getSelection();
                }
               
                shell.dispose();
                try
                {
                    boolean result = false;

                    if (!settingManagementRightsSupported())
View Full Code Here

        cancelButton.addSelectionListener(new SelectionAdapter()
        {
            public void widgetSelected(SelectionEvent e)
            {
                shell.dispose();
            }
        });

        shell.setDefaultButton(okButton);
        shell.pack();
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.