Package org.eclipse.swt.widgets

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


        });
        txtDirPublicKey.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

        final Button button_4 = new Button(groupAuthenticationMethods, SWT.NONE);
        button_4.setVisible(false);
        button_4.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
          }
        });
        button_4.setText("...");
        new Label(schedulerGroup, SWT.NONE);
View Full Code Here


        butApply.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
        butApply.setText("Apply");
        //txtHost.setText(currProfile.get("host") != null ? currProfile.get("host").toString() : "");

        final Button butNewProfile = new Button(schedulerGroup, SWT.NONE);
        butNewProfile.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            newProfile = true;
            cboConnectname.setText("");
            txtPort.setText("");
            txtUsername.setText("");
View Full Code Here

        butNewProfile.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
        butNewProfile.setText("New Profile");
        //txtPort.setText(currProfile.get("port") != null ? currProfile.get("port").toString() : "");

        final Button butRemove = new Button(schedulerGroup, SWT.NONE);
        butRemove.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            if(cboConnectname.getText().length() == 0)
              return;

            listener.removeProfile(cboConnectname.getText());         
View Full Code Here


      }

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

          close();

          saved = true;
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

    Button butHelp = new Button(composite, SWT.NONE);
    //butHelp.setLayoutData(new GridData());
    final Shell shell_ = shell;
    final String text_ = text;
    butHelp.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        Utils.showClipboard(Messages.getString(text_), shell_, false, null);
      }
    });
View Full Code Here

      });
      txtDirPublicKey.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

      final Button button_4 = new Button(groupAuthenticationMethods, SWT.NONE);
      button_4.setVisible(false);
      button_4.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
        }
      });
      button_4.setText("...");
      new Label(schedulerGroup, SWT.NONE);
View Full Code Here

      butApply.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      butApply.setText("Apply");
      //txtHost.setText(currProfile.get("host") != null ? currProfile.get("host").toString() : "");

      final Button butNewProfile = new Button(schedulerGroup, SWT.NONE);
      butNewProfile.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          newProfile = true;
          cboConnectname.setText("");
          txtPort.setText("");
          txtUsername.setText("");
View Full Code Here

      butNewProfile.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
      butNewProfile.setText("New Profile");
      //txtPort.setText(currProfile.get("port") != null ? currProfile.get("port").toString() : "");

      final Button butRemove = new Button(schedulerGroup, SWT.NONE);
      butRemove.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
          if(cboConnectname.getText().length() == 0)
            return;
         
          listener.removeProfile(cboConnectname.getText());         
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.