Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.SelectionListener


        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


        onlyInFileCheckBoxButton = new Button(composite, SWT.CHECK);
        onlyInFileCheckBoxButton.setText("Detect duplicates in the project");
        onlyInFileCheckBoxButton.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL
                | GridData.HORIZONTAL_ALIGN_FILL));
        onlyInFileCheckBoxButton.addSelectionListener(new SelectionListener() {

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

        // Select All button
        final Button selectButton = createButton(buttonComposite,
                IDialogConstants.SELECT_ALL_ID, "&Select All", false);
        SWTUtil.setButtonDimensionHint(selectButton);
        SelectionListener listener = new SelectionAdapter() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                fCheckBoxList.setAllChecked(true);
                fFilterDescriptorChangeHistory.clear();
                for (final FilterDescriptor desc : fBuiltInFilters) {
View Full Code Here

                        public String apply(final RuntimeVersion p) {
                            return p.toString();
                        }
                    }).toArray(new String[] {}));
            runtimeCombo.setText(model.getRequiredRuntimeVersion().asMajor().toString());
            runtimeCombo.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetSelected(final SelectionEvent e) {
                    model.setRequiredRuntimeVersion(RuntimeVersion.Serializer
                            .parse(runtimeCombo.getText()));
View Full Code Here

            }
        });
        // Handle mouse move events
        tree.addMouseMoveListener(new QuickOutlineMouseMoveListener(fTreeViewer));
        // Handle widget selection events
        tree.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                // NO-OP
            }
View Full Code Here

            public void selectionChanged(final SelectionChangedEvent event) {
                handleSyntaxColorListSelection();
            }
        });

        foregroundColorButton.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final TokenHighlight item = getHighlight();
                final HighlightStyle data = item.getStyle(fOverlayStore);
                if (data == null) {
                    return;
                }
                data.setColor(fSyntaxForegroundColorEditor.getColorValue());
                storeHighlight(fOverlayStore, item, data);
                fPreviewViewer.invalidateTextPresentation();
            }
        });

        fBoldCheckBox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final TokenHighlight item = getHighlight();
                final HighlightStyle data = item.getStyle(fOverlayStore);
                if (data == null) {
                    return;
                }
                data.setStyle(SWT.BOLD, fBoldCheckBox.getSelection());
                storeHighlight(fOverlayStore, item, data);
                fPreviewViewer.invalidateTextPresentation();
            }
        });

        fItalicCheckBox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final TokenHighlight item = getHighlight();
                final HighlightStyle data = item.getStyle(fOverlayStore);
                if (data == null) {
                    return;
                }
                data.setStyle(SWT.ITALIC, fItalicCheckBox.getSelection());
                storeHighlight(fOverlayStore, item, data);
            }
        });
        fStrikethroughCheckBox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final TokenHighlight item = getHighlight();
                final HighlightStyle data = item.getStyle(fOverlayStore);
                if (data == null) {
                    return;
                }
                data.setStyle(TextAttribute.STRIKETHROUGH,
                        fStrikethroughCheckBox.getSelection());
                storeHighlight(fOverlayStore, item, data);
            }
        });

        fUnderlineCheckBox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }

            @Override
            public void widgetSelected(final SelectionEvent e) {
                final TokenHighlight item = getHighlight();
                final HighlightStyle data = item.getStyle(fOverlayStore);
                if (data == null) {
                    return;
                }
                data.setStyle(TextAttribute.UNDERLINE, fUnderlineCheckBox.getSelection());
                storeHighlight(fOverlayStore, item, data);
            }
        });

        fEnableCheckbox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                // do nothing
            }
View Full Code Here

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

        distributedLoadCheck = new Button(comp, SWT.CHECK);
        distributedLoadCheck.setText("Load project code on all connected nodes");
        distributedLoadCheck.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false,
                false, 2, 1));
        new Label(comp, SWT.NONE);
        distributedLoadCheck.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetDefaultSelected(final SelectionEvent e) {
                updateLaunchConfigurationDialog();
            }
View Full Code Here

        });

        addFunctionBtn = new Button(container, SWT.PUSH);
        addFunctionBtn.setText("          Apply          ");
        addFunctionBtn.setToolTipText("Create a new function or edit an existing one.");
        addFunctionBtn.addSelectionListener(new SelectionListener() {

            @Override
            public void widgetSelected(final SelectionEvent e) {
                addFunction(functionNameText.getText(),
                        Integer.parseInt(arityText.getText()), FunctionGroup.NONE,
View Full Code Here

        fTableViewer.getControl().setFont(font);

        final Button checkbox = new Button(composite, SWT.CHECK);
        checkbox.setText("Show only &projects with project specific settings");
        checkbox.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false));
        checkbox.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                updateFilter(((Button) e.widget).getSelection());
            }
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.