Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button.addListener()


     
      Button browse = new Button(pluginGroup, SWT.PUSH);
      ImageLoader.getInstance().setButtonImage(browse, getBrowseImageResource());
      browse.setToolTipText(MessageText.getString("ConfigView.button.browse"));

      browse.addListener(SWT.Selection, new Listener() {
        public void handleEvent(Event event) {
          String path = DirectoryParameter.this.openDialog(pluginGroup.getShell(), sp.getValue());
          if (path != null) {
            sp.setValue(path);
          }
View Full Code Here


    data.right = new FormAttachment(100,-5);
    data.width = 100;
    data.bottom = new FormAttachment(100,-5);
    action.setLayoutData(data);
   
    cancel.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event arg0) {
        if(lookup != null) {
          lookup.cancel();
        }
        if(!shell.isDisposed()) {
View Full Code Here

    textPath.setLayoutData(gridData);
    textPath.setText(((ImportTorrentWizard)wizard).getTorrentFile());
 
    Button browse = new Button(panel,SWT.PUSH);
    Messages.setLanguageText(browse, "importTorrentWizard.torrentfile.browse");
    browse.addListener(SWT.Selection,new Listener() {
     
      public void handleEvent(Event arg0){
       
      FileDialog fd = new FileDialog(wizard.getWizardWindow(), SWT.SAVE);
     
View Full Code Here

    textPath.setLayoutData(gridData);
    textPath.setText("");
 
    Button browse = new Button(panel,SWT.PUSH);
    Messages.setLanguageText(browse, "importTorrentWizard.importfile.browse");
    browse.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event arg0) {
       
      FileDialog fd = new FileDialog(wizard.getWizardWindow());
     
      fd.setFileName(textPath.getText());
View Full Code Here

       bOk.setText(MessageText.getString("Button.ok"));
       gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END | GridData.HORIZONTAL_ALIGN_FILL);
       gridData.grabExcessHorizontalSpace = true;
       gridData.widthHint = 70;
       bOk.setLayoutData(gridData);
       bOk.addListener(SWT.Selection,new Listener() {
          public void handleEvent(Event e) {
           close(true);
           }
       });
     
View Full Code Here

       bCancel.setText(MessageText.getString("Button.cancel"));
       gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
       gridData.grabExcessHorizontalSpace = false;
       gridData.widthHint = 70;
       bCancel.setLayoutData(gridData);   
       bCancel.addListener(SWT.Selection,new Listener() {
         public void handleEvent(Event e) {
           close(false);
           }
       });
     
View Full Code Here

    bOk.setImage(skin.getButtonImage(SkinConstants.FINISH_BUTTON_IMAGE));
    bOk.setText(Localizer._("mainwindow.button.ok"));
    rd = new RowData();
    rd.width = 70;
    bOk.setLayoutData(rd);
    bOk.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        saveAndApply();
        close();
      }
    });
View Full Code Here

    bCancel.setImage(skin.getButtonImage(SkinConstants.CANCEL_BUTTON_IMAGE));
    bCancel.setText(Localizer._("mainwindow.button.cancel"));
    rd = new RowData();
    rd.width = 70;
    bCancel.setLayoutData(rd);
    bCancel.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        close();
      }
    });
   
View Full Code Here

    bApply.setImage(skin.getButtonImage(SkinConstants.OK_BUTTON_IMAGE));
    bApply.setText(Localizer._("mainwindo.button.apply"));
    rd = new RowData();
    rd.width = 70;
    bApply.setLayoutData(rd);
    bApply.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        saveAndApply();
      }
    });
   
View Full Code Here

  skipYesButton.addListener( SWT.Selection, selectionListener);   skipNoButton.addListener( SWT.Selection, selectionListener);
  folYesButton.addListener( SWT.Selection, selectionListener);    folNoButton.addListener( SWT.Selection, selectionListener);
  keepYesButton.addListener( SWT.Selection, selectionListener);   keepNoButton.addListener( SWT.Selection, selectionListener);
  freshYesButton.addListener( SWT.Selection, selectionListener);   freshNoButton.addListener( SWT.Selection, selectionListener);
  spellYesButton.addListener( SWT.Selection, selectionListener);   spellNoButton.addListener( SWT.Selection, selectionListener);
  threadCombo.addListener( SWT.Selection, selectionListener);

  setControl(composite);

}
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.