Package org.eclipse.swt.widgets

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


    fromTaskButton.setText("from task");

    final Button fromOrderButton = new Button(composite_1, SWT.RADIO);
    final GridData gridData_2 = new GridData(GridData.FILL, GridData.BEGINNING, false, true);
    fromOrderButton.setLayoutData(gridData_2);
    fromOrderButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        tParaName.setText("<from>");
        cSource.setText("order");
        bApply.setFocus();
      }
View Full Code Here


    composite_1.setLayoutData(gridData);
    composite_1.setLayout(new GridLayout());

    final Button paramButton = new Button(composite_1, SWT.RADIO);
    paramButton.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false));
    paramButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        tParaName.setText("");
        tParaValue.setText("");
        tParaName.setFocus();
      }
View Full Code Here

    paramButton.setSelection(true);
    paramButton.setText("Parameter");

    final Button fromTaskButton = new Button(composite_1, SWT.RADIO);
    fromTaskButton.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    fromTaskButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        tParaName.setText("<from>");
        cSource.setText("task");
        bApply.setFocus();
      }
View Full Code Here

    fromTaskButton.setText("from task");

    final Button fromOrderButton = new Button(composite_1, SWT.RADIO);
    final GridData gridData_2 = new GridData(GridData.FILL, GridData.BEGINNING, false, true);
    fromOrderButton.setLayoutData(gridData_2);
    fromOrderButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        tParaName.setText("<from>");
        cSource.setText("order");
        bApply.setFocus();
      }
View Full Code Here

    final Button button = new Button(gMain, SWT.NONE);
    final GridData gridData = new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false);
    gridData.widthHint = 28;
    button.setLayoutData(gridData);
    button.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        String text = sos.scheduler.editor.app.Utils.showClipboard(tComment.getText(), getShell(), true, "");
        if(text != null)
          tComment.setText(text);
      }
View Full Code Here

      txtLog.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
      ftpProfilePicker.setLogText(txtLog);


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

          String text = sos.scheduler.editor.app.Utils.showClipboard(txtLog.getText(), schedulerConfigurationShell, false, null, false, null, false);
                                               
          if(text != null)
View Full Code Here

    });
    cboFunctions.setVisible(false);

    Button closeButton = new Button(composite, SWT.NONE);
    closeButton.setText("Close");
    closeButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        close();             
      }
    });
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("");         
          txtUsername.setText("");
          txtPassword.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) {
          listener.removeProfile(cboConnectname.getText());         
          if(cboConnectname.getItemCount() > 0)
            cboConnectname.select(0);
          initForm();
View Full Code Here


    }

    final Button butClose = new Button(schedulerConfigurationShell, SWT.NONE);
    butClose.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
       
        close();
        saved = true;
        schedulerConfigurationShell.dispose();
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.