Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.SelectionListener


        fFoldingCheckbox = new Button(composite, SWT.CHECK);
        fFoldingCheckbox.setText(PreferencesMessages.FoldingConfigurationBlock_enable);
        gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING
                | GridData.VERTICAL_ALIGN_BEGINNING);
        fFoldingCheckbox.setLayoutData(gd);
        fFoldingCheckbox.addSelectionListener(new SelectionListener() {

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final boolean enabled = fFoldingCheckbox.getSelection();
                fStore.setValue(PreferenceConstants.EDITOR_FOLDING_ENABLED, enabled);
View Full Code Here


        checkBox.setText(checkBoxText);

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

            @Override
            public void widgetSelected(final SelectionEvent e) {
                isCheckBoxSelected = checkBox.getSelection();
View Full Code Here

                @Override
                public void modifyText(final ModifyEvent e) {
                    doModifyText(e);
                }
            };
            final SelectionListener selectionListener = new SelectionListener() {

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

                layout.marginWidth = 0;
            }

            fButtonComposite.setLayout(layout);

            final SelectionListener listener = new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                    doWidgetSelected(e);
                }
View Full Code Here

        for (final String name : names) {
            column = new TreeViewerColumn(viewer, SWT.NONE);
            final TreeColumn treeColumn = column.getColumn();
            treeColumn.setResizable(true);
            treeColumn.setMoveable(true);
            treeColumn.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                }
View Full Code Here

     */
    public Composite getButtonBox(final Composite parent) {
        if (fButtonsControl == null) {
            assertCompositeNotNull(parent);

            final SelectionListener listener = new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                    doButtonSelected(e);
                }
View Full Code Here

   * (non-Javadoc) Method declared on Viewer.
   */
  protected void hookControl(Control control) {
    super.hookControl(control);
    OpenStrategy handler = new OpenStrategy(control);
    handler.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // On Windows, selection events may happen during a refresh.
        // Ignore these events if we are currently in preservingSelection().
        // See bug 184441.
        if (!inChange) {
View Full Code Here

    data.horizontalSpan = 2;
    list.setLayoutData(data);
    list.setFont(parent.getFont());
    Menu copyMenu = new Menu(list);
    MenuItem copyItem = new MenuItem(copyMenu, SWT.NONE);
    copyItem.addSelectionListener(new SelectionListener() {
      /*
       * @see SelectionListener.widgetSelected (SelectionEvent)
       */
      public void widgetSelected(SelectionEvent e) {
        copyToClipboard();
View Full Code Here

            fBrowseButton = new Button(parent, SWT.PUSH);
            fBrowseButton.setFont(parent.getFont());
            fBrowseButton.setText(fBrowseButtonLabel);
            fBrowseButton.setEnabled(isEnabled() && fButtonEnabled);
            fBrowseButton.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                    changeControlPressed();
                }
View Full Code Here

            fButton = new Button(group, fButtonStyle);
            fButton.setFont(group.getFont());
            fButton.setText(fLabelText);
            fButton.setEnabled(isEnabled());
            fButton.setSelection(fIsSelected);
            fButton.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                    doWidgetSelected(e);
                }
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.