Examples of ShellAdapter


Examples of org.eclipse.swt.events.ShellAdapter

        setupButtons();

        shell.pack();
        setLocation();       
        shell.open();
        shell.addShellListener(new ShellAdapter(){
            public void shellClosed(ShellEvent e) {
                success = false;
            }
        });
    }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

        setupButtons();

        shell.pack();
        setLocation();       
        shell.open();
        shell.addShellListener(new ShellAdapter(){
            public void shellClosed(ShellEvent e) {
                success = false;
            }
        });
    }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * Create contents of the dialog
   */
  protected void createContents() {
    shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    shell.setImage(SWTResourceManager.getImage(ShowConceptPath.class, ApplicationResources.getString("ShowConceptPath.0"))); //$NON-NLS-1$
    shell.addShellListener(new ShellAdapter() {
      public void shellActivated(ShellEvent arg0) {
        combo.setItems(concepts);
        if(combo.getItemCount()==0){
          //Deactivate button
        }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * Create contents of the dialog
   */
  protected void createContents() {
    shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    shell.setImage(SWTResourceManager.getImage(SpreadInspector.class, ApplicationResources.getString("SpreadInspector.0"))); //$NON-NLS-1$
    shell.addShellListener(new ShellAdapter() {
   
      public void shellActivated(ShellEvent arg0) {
        loadInitialConcepts()
        loadRelationsWeight();
        loadActiveConcepts();
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * Create contents of the dialog
   */
  protected void createContents() {
    shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    shell.setImage(SWTResourceManager.getImage(ShowConcept.class, ApplicationResources.getString("ShowConcept.0"))); //$NON-NLS-1$
    shell.addShellListener(new ShellAdapter() {
      public void shellActivated(ShellEvent arg0) {
        combo.setItems(concepts);
      }
    });
    shell.setSize(566, 102);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * Create contents of the dialog
   */
  protected void createContents() {
    shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    shell.setImage(SWTResourceManager.getImage(SetInitialConcepts.class, ApplicationResources.getString("SetInitialConcepts.0"))); //$NON-NLS-1$
    shell.addShellListener(new ShellAdapter() {
      public void shellActivated(ShellEvent arg0) {
        initialConceptsCombo.setItems(initialConceptsUris)
      }
    });
    shell.setSize(560, 238);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

   * Create contents of the dialog
   */
  protected void createContents() {
    shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
    shell.setImage(SWTResourceManager.getImage(ShowSpreadingPath.class, ApplicationResources.getString("ShowSpreadingPath.0"))); //$NON-NLS-1$
    shell.addShellListener(new ShellAdapter() {
      public void shellActivated(ShellEvent arg0) {
        combo.setItems(concepts);
        if(combo.getItemCount()==0){
          //Deactivate button
        }
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  protected WorkDialog(final Shell parent) {
    super(parent);
    this.shell = new Shell(parent, SWT.TITLE | SWT.BORDER | SWT.PRIMARY_MODAL);
    shell.setSize(450, 180);
    shell.setText("传输");
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        e.doit = false;
      }
    });
    shell.setVisible(false);
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

    Rectangle shellBounds = shell.getBounds();
    int x = (displayBounds.width - shellBounds.width) / 2;
    int y = (displayBounds.height - shellBounds.height) / 2;
    shell.setLocation(x, y);
    shell.setText("控制台");
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        e.doit = false;
        shell.setVisible(false);
      }
    });
View Full Code Here

Examples of org.eclipse.swt.events.ShellAdapter

  public ExceptionDialog(final Shell parent) {
    super(parent);
    this.shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);
    shell.setSize(450, 200);
    shell.setText("异常");
    shell.addShellListener(new ShellAdapter() {
      public void shellClosed(ShellEvent e) {
        e.doit = false;
        shell.setVisible(false);
      }
    });
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.