Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.SelectionListener


    typeCombo.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false, 1, 1));
    typeCombo.setItems(items);
    typeCombo.select(0);
    typeCombo.setEnabled(selectedItemFinal != null);

    typeCombo.addSelectionListener(new SelectionListener() {

      public void widgetSelected(SelectionEvent e) {
        if (selectedItemFinal != null) {
          selectedItemFinal.setPlan(plans.get(typeCombo.getSelectionIndex()));
        }
View Full Code Here


        fd_btnNone.top = new FormAttachment(0, 10);
        fd_btnNone.right = new FormAttachment(100, -10);
        btnNone.setLayoutData(fd_btnNone);

        btnNone.setText("Select None");
        btnNone.addSelectionListener(new SelectionListener() {

            @Override
            public void widgetSelected(SelectionEvent e) {
                setCheckedForAll(false);
            }

            @Override
            public void widgetDefaultSelected(SelectionEvent e) {
            }
        });

        final Button btnAll = new Button(this, SWT.NONE);
        final FormData fd_btnAll = new FormData();
        fd_btnAll.right = new FormAttachment(btnNone, -6);
        fd_btnAll.top = new FormAttachment(0, 10);
        btnAll.setLayoutData(fd_btnAll);

        btnAll.setText("Select All");
        btnAll.addSelectionListener(new SelectionListener() {

            @Override
            public void widgetSelected(SelectionEvent e) {
                setCheckedForAll(true);
            }

            @Override
            public void widgetDefaultSelected(SelectionEvent e) {
            }
        });
        table = new Table(this, SWT.BORDER | SWT.CHECK | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
        final FormData fd_table = new FormData();
        fd_table.bottom = new FormAttachment(100, -10);
        fd_table.right = new FormAttachment(100, -10);
        fd_table.top = new FormAttachment(btnNone, 10);
        fd_table.left = new FormAttachment(0, 10);
        table.setLayoutData(fd_table);
        table.setHeaderVisible(true);
        table.setLinesVisible(true);
        table.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                notifyListeners();
            }
View Full Code Here

            @Override public void modifyText (ModifyEvent e) {
                if (!_textNotifyInProgress) _element.field().text.update(_textCtrl.getText());
            }
        });

        _textCtrl.addSelectionListener(new SelectionListener() {
            @Override public void widgetDefaultSelected (SelectionEvent ev) {
                _element.finishedEditing().emit(true);
            }

            @Override public void widgetSelected (SelectionEvent ev) {}
View Full Code Here

        txtSampleVersion.setText(sampleVersion.toString());
        updateCalculatedRange();

        // Add listeners
        SelectionListener buttonListener = new SelectionListener()
        {
            public void widgetSelected(SelectionEvent e)
            {
                readRadioButtons();
                updateCalculatedRange();
View Full Code Here

        final ISlingLaunchpadConfiguration config = launchpadServer.getConfiguration();

        quickLocalInstallButton.setSelection(config.bundleInstallLocally());
        bundleLocalInstallButton.setSelection(!config.bundleInstallLocally());

        SelectionListener listener = new SelectionAdapter() {
         
          @Override
          public void widgetSelected(SelectionEvent e) {
            execute(new SetBundleInstallLocallyCommand(server, quickLocalInstallButton.getSelection()));
          }
View Full Code Here

    });
   
    final Button useJapidButton = new Button(container, SWT.CHECK);
    useJapidButton.setText("Use Japid");
    useJapidButton.setSelection(true);
    useJapidButton.addSelectionListener(new SelectionListener() {
      @Override
      public void widgetSelected(SelectionEvent arg0) {
        useJapid = useJapidButton.getSelection();
      }
      @Override
View Full Code Here

    fieldEditorParent.setFont(parent.getFont());
   
   
   
    analysisEnabled = addCheckBox(fieldEditorParent, "Enable semantic analysis", fAllKeys[0], new String[] {"true", "false"}, 0); //$NON-NLS-2$ $NON-NLS-3$
    analysisEnabled.addSelectionListener(new SelectionListener() {
     
      @Override
      public void widgetSelected(SelectionEvent e) {
        updateFieldVisibility();
       
View Full Code Here

  private Link createLink(Composite composite, String text) {
    Link link = new Link(composite, SWT.NONE);
    link.setFont(composite.getFont());
    link.setText("<A>" + text + "</A>"); //$NON-NLS-1$//$NON-NLS-2$
    link.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        doLinkActivated((Link) e.widget);
      }

      public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

    });
    setHelpContext(projectText, HelpContexts.TESTABILITY_PROJECT);

    Button projectBrowseButton = new Button(control, SWT.PUSH);
    projectBrowseButton.setText("Browse...");
    projectBrowseButton.addSelectionListener(new SelectionListener() {
      public void widgetDefaultSelected(SelectionEvent e) {
      }

      public void widgetSelected(SelectionEvent e) {
        setUpBrowseProjectDialog();
      }
    });
    setHelpContext(projectText, HelpContexts.TESTABILITY_PROJECT);

    Label reportFolderLabel = new Label(control, SWT.NONE);
    reportFolderLabel.setText("Report Folder:");

    reportFolderText = new Text(control, SWT.BORDER);
    GridData folderGridData = new GridData(GridData.FILL_HORIZONTAL);
    reportFolderText.setLayoutData(folderGridData);
    reportFolderText.addKeyListener(new KeyListener() {
      public void keyPressed(KeyEvent e) {
      }

      public void keyReleased(KeyEvent e) {
        setTabDirty();
      }
    });
    setHelpContext(reportFolderText, HelpContexts.TESTABILITY_REPORT_FOLDER);

    Button reportFolderBrowseButton = new Button(control, SWT.PUSH);
    reportFolderBrowseButton.setText("Browse...");
    reportFolderBrowseButton.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
      }

      public void widgetSelected(SelectionEvent e) {
        setUpBrowseFolderDialog();
      }
    });
    setHelpContext(reportFolderBrowseButton, HelpContexts.TESTABILITY_REPORT_FOLDER);

    Label whiteList = new Label(control, SWT.NONE);
    whiteList.setText("White list:");
    whiteListList = new ListViewer(control, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);
    whiteListList.getList().setBounds(0, 0, 100, 100);
    GridData whiteListGridData = new GridData(GridData.FILL_HORIZONTAL);
    whiteListGridData.heightHint = 100;
    whiteListGridData.verticalSpan = 2;
    whiteListList.getList().setLayoutData(whiteListGridData);
    whiteListList.getList().addKeyListener(new KeyListener() {
      public void keyPressed(KeyEvent e) {
      }

      public void keyReleased(KeyEvent e) {
        setTabDirty();
      }
    });
    setHelpContext(whiteListList.getList(),
        HelpContexts.TESTABILITY_WHITELIST);
    Button whitelistPackagesBrowseButton = new Button(control, SWT.PUSH);
    whitelistPackagesBrowseButton.setText("Add...");
    whitelistPackagesBrowseButton.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
      }

      public void widgetSelected(SelectionEvent e) {
        setUpWhitelistPackagesDialog();
      }
    });
    GridData whiteListPackagesBrowseGridData = new GridData();
    whitelistPackagesBrowseButton.setLayoutData(whiteListPackagesBrowseGridData);
    setHelpContext(whitelistPackagesBrowseButton, HelpContexts.TESTABILITY_WHITELIST);

    Label spacer = new Label(control, SWT.NONE);

    Button whitelistPackagesRemoveButton = new Button(control, SWT.PUSH);
    whitelistPackagesRemoveButton.setText("Remove");
    whitelistPackagesRemoveButton.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
      }

      public void widgetSelected(SelectionEvent e) {
        removeSelectedPackageFromWhitelist();
      }
    });
    GridData whiteListRemoveGridData = new GridData();
    whiteListRemoveGridData.verticalAlignment = SWT.TOP;
    whitelistPackagesRemoveButton.setLayoutData(whiteListRemoveGridData);
    setHelpContext(whitelistPackagesRemoveButton, HelpContexts.TESTABILITY_WHITELIST);
   
    Label spacer2 = new Label(control, SWT.NONE);
    runOnCompileCheckbox = new Button(control, SWT.CHECK);
    runOnCompileCheckbox.setText("Run this configuration at every build");
    runOnCompileCheckbox.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent e) {
      }

      public void widgetSelected(SelectionEvent e) {
View Full Code Here

        onlyInFileCheckBoxButton.setText("Detect similar code snippets in the project");

        onlyInFileCheckBoxButton.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL
                | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL
                | GridData.VERTICAL_ALIGN_CENTER));
        onlyInFileCheckBoxButton.addSelectionListener(new SelectionListener() {

            @Override
            public void widgetSelected(final SelectionEvent e) {
                validateInput();
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.SelectionListener

Copyright © 2018 www.massapicom. 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.