Package org.eclipse.swt.widgets

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


    /* Clear */
    createButton(buttonBar, BUTTON_CLEAR, Messages.SearchNewsDialog_CLEAR, false);

    /* Close */
    Button closeButton = createButton(buttonBar, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false);
    closeButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        close();
      }
    });
View Full Code Here


    Button selectAllButton = new Button(buttonContainer, SWT.PUSH);
    selectAllButton.setText(Messages.SharingPreferencesPage_SELECT_ALL);
    Dialog.applyDialogFont(selectAllButton);
    setButtonLayoutData(selectAllButton);
    ((GridData) selectAllButton.getLayoutData()).verticalIndent = 10;
    selectAllButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        onSelectAll(false);
      }
    });
View Full Code Here

    /* De-Select All */
    Button deSelectAllButton = new Button(buttonContainer, SWT.PUSH);
    deSelectAllButton.setText(Messages.SharingPreferencesPage_DESELECT_ALL);
    Dialog.applyDialogFont(deSelectAllButton);
    setButtonLayoutData(deSelectAllButton);
    deSelectAllButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        onSelectAll(true);
      }
    });
View Full Code Here

   

    // Close
    Button close = new Button(shell, SWT.PUSH);
    close.setText(closeText);
    close.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        shell.close();
      }
    });
    data = new GridData();
View Full Code Here

    // Create the OK button and add a handler
    // so that pressing it will set input
    // to the entered value
    Button ok = new Button(c2, SWT.PUSH);
    ok.setText(okText);
    ok.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        SWTOptionDialog.this.ok = true;
        open = false;
      }
    });
View Full Code Here

    // Create the cancel button and add a handler
    // so that pressing it will set input to null
    if (cancelText != null) {
      Button cancel = new Button(c2, SWT.PUSH);
      cancel.setText(cancelText);
      cancel.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent event) {
          open = false;
        }
      });
    }
View Full Code Here

    GridLayout gl_gpButtons = new GridLayout(3, false);
    gl_gpButtons.horizontalSpacing = 9;
    gpButtons.setLayout(gl_gpButtons);
   
    Button btnOk = new Button(gpButtons, SWT.NONE);
    btnOk.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent arg0) {
      }
    });
    btnOk.setText("Save");
View Full Code Here

      }
    });
    text.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));

    final Button butOK = new Button(newFolderShell, SWT.NONE);
    butOK.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {


        doSomethings();
View Full Code Here

      }
    });
    butOK.setText("OK");

    final Button butCancel = new Button(newFolderShell, SWT.NONE);
    butCancel.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        close();
      }
    });
    butCancel.setLayoutData(new GridData(GridData.END, GridData.CENTER, true, false));
View Full Code Here


      butConnect.setLayoutData(new GridData());
      butConnect.setEnabled( ftpProfilePicker.getSelectedFTPProfile() != null);
      final Label label1 = new Label(testFtpProfileShell, SWT.NONE);
      butConnect.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          sos.net.SOSFileTransfer sosfileTransfer = null;


          try {
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.