Package org.eclipse.swt.widgets

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


  shell.addListener(SWT.Traverse, new Listener() {
    
    public void handleEvent(Event e) {
     
      if ( e.character == SWT.ESC){
        shell.dispose();
      }
    }
  });
 
 
View Full Code Here


    new Label(shell, SWT.NONE);

    cancelButton = new Button(shell, SWT.NONE);
    cancelButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        shell.dispose();
      }
    });
    cancelButton.setText("Cancel");
    {
      butNext = new Button(shell, SWT.NONE);
View Full Code Here

        public void widgetSelected(final SelectionEvent e) {
          Utils.startCursor(shell);
          JobAssistentTypeForms typeForms = new JobAssistentTypeForms(dom, update);
         
          typeForms.showTypeForms()
          shell.dispose();
          Utils.stopCursor(shell);
        }
      });
      butNext.setText("Next");
    }
View Full Code Here

      Button btnSave = new Button(s, SWT.NONE);
      btnSave.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
           saveFontData(t.getFont().getFontData()[0],t.getForeground().getRGB());
           s.dispose();
        }
      });
      btnSave.setText("Save");
     
      Button btnReset = new Button(s, SWT.NONE);
View Full Code Here

     
      Button btnCancel = new Button(s, SWT.NONE);
      btnCancel.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
           s.dispose();
        }
      });
      btnCancel.setText("Cancel");
  
      new Label(s, SWT.NONE);
View Full Code Here

      buttonOK.addListener(SWT.Selection, new Listener() {
        public void handleEvent(Event event) {
         
          entity = new CacheEntry(keytext.getText(), valuetext.getText(), lifespantext.getText(), maxIdletext.getText(), "-");
          setSet(true);
          shell.dispose();
        }
      });

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

      });

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

    buttonOK.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
       
        entity = new CacheEntry(keytext.getText(), valuetext.getText(), lifespantext.getText(), maxIdletext.getText(), "-");
       
        shell.dispose();
      }
    });

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

      }
    });

      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

              entity = new CacheEntry(key, value, cacheEntry.getLifespan() + "", cacheEntry.getMaxIdle() + "", "");
            } else {
              entity = new CacheEntry(key, value, "", "", "");
            }
          }
          shell.dispose();
        }
      });

      buttonCancel.addListener(SWT.Selection, new Listener() {
        public void handleEvent(Event event) {
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.