Search in sources :

Example 76 with KeyAdapter

use of org.eclipse.swt.events.KeyAdapter in project eclipse.platform.swt by eclipse.

the class Tab method createListenersGroup.

/**
 * Creates the "Listeners" group.  The "Listeners" group
 * goes below the "Example" and "Control" groups.
 */
void createListenersGroup() {
    listenersGroup = new Group(tabFolderPage, SWT.NONE);
    listenersGroup.setLayout(new GridLayout(4, false));
    listenersGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
    listenersGroup.setText(ControlExample.getResourceString("Listeners"));
    /*
		 * Create the button to access the 'Listeners' dialog.
		 */
    Button listenersButton = new Button(listenersGroup, SWT.PUSH);
    listenersButton.setText(ControlExample.getResourceString("Select_Listeners"));
    listenersButton.addSelectionListener(widgetSelectedAdapter(e -> {
        createListenerSelectionDialog();
        recreateExampleWidgets();
    }));
    /*
		 * Create the checkbox to specify whether typed or untyped events are displayed in the log.
		 */
    final Button untypedEventsCheckbox = new Button(listenersGroup, SWT.CHECK);
    untypedEventsCheckbox.setText(ControlExample.getResourceString("UntypedEvents"));
    untypedEventsCheckbox.addSelectionListener(widgetSelectedAdapter(e -> untypedEvents = untypedEventsCheckbox.getSelection()));
    /*
		 * Create the checkbox to add/remove listeners to/from the example widgets.
		 */
    final Button listenCheckbox = new Button(listenersGroup, SWT.CHECK);
    listenCheckbox.setText(ControlExample.getResourceString("Listen"));
    listenCheckbox.addSelectionListener(widgetSelectedAdapter(e -> {
        logging = listenCheckbox.getSelection();
        recreateExampleWidgets();
    }));
    /*
		 * Create the button to clear the text.
		 */
    Button clearButton = new Button(listenersGroup, SWT.PUSH);
    clearButton.setText(ControlExample.getResourceString("Clear"));
    clearButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
    clearButton.addSelectionListener(widgetSelectedAdapter(e -> eventConsole.setText("")));
    /* Initialize the eventsFilter to log all events. */
    int customEventCount = getCustomEventNames().length;
    eventsFilter = new boolean[EVENT_INFO.length + customEventCount];
    for (int i = 0; i < EVENT_INFO.length + customEventCount; i++) {
        eventsFilter[i] = true;
    }
    /* Create the event console Text. */
    eventConsole = new Text(listenersGroup, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);
    GridData data = new GridData(GridData.FILL_BOTH);
    data.horizontalSpan = 4;
    data.heightHint = 80;
    eventConsole.setLayoutData(data);
    createEventConsolePopup();
    eventConsole.addKeyListener(new KeyAdapter() {

        @Override
        public void keyPressed(KeyEvent e) {
            if ((e.keyCode == 'A' || e.keyCode == 'a') && (e.stateMask & SWT.MOD1) != 0) {
                eventConsole.selectAll();
                e.doit = false;
            }
        }
    });
}
Also used : DisposeEvent(org.eclipse.swt.events.DisposeEvent) FocusEvent(org.eclipse.swt.events.FocusEvent) GC(org.eclipse.swt.graphics.GC) Point(org.eclipse.swt.graphics.Point) TypedEvent(org.eclipse.swt.events.TypedEvent) PaintEvent(org.eclipse.swt.events.PaintEvent) ColorDialog(org.eclipse.swt.widgets.ColorDialog) MenuEvent(org.eclipse.swt.events.MenuEvent) Composite(org.eclipse.swt.widgets.Composite) KeyEvent(org.eclipse.swt.events.KeyEvent) Widget(org.eclipse.swt.widgets.Widget) Method(java.lang.reflect.Method) KeyAdapter(org.eclipse.swt.events.KeyAdapter) SelectionListener.widgetDefaultSelectedAdapter(org.eclipse.swt.events.SelectionListener.widgetDefaultSelectedAdapter) TraverseEvent(org.eclipse.swt.events.TraverseEvent) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) Text(org.eclipse.swt.widgets.Text) ModifyEvent(org.eclipse.swt.events.ModifyEvent) Button(org.eclipse.swt.widgets.Button) ArmEvent(org.eclipse.swt.events.ArmEvent) Display(org.eclipse.swt.widgets.Display) MouseEvent(org.eclipse.swt.events.MouseEvent) Item(org.eclipse.swt.widgets.Item) MenuItem(org.eclipse.swt.widgets.MenuItem) SWT(org.eclipse.swt.SWT) Label(org.eclipse.swt.widgets.Label) SelectionListener(org.eclipse.swt.events.SelectionListener) TabFolder(org.eclipse.swt.widgets.TabFolder) Image(org.eclipse.swt.graphics.Image) Rectangle(org.eclipse.swt.graphics.Rectangle) Table(org.eclipse.swt.widgets.Table) Event(org.eclipse.swt.widgets.Event) ControlEvent(org.eclipse.swt.events.ControlEvent) SelectionListener.widgetSelectedAdapter(org.eclipse.swt.events.SelectionListener.widgetSelectedAdapter) VerifyEvent(org.eclipse.swt.events.VerifyEvent) Listener(org.eclipse.swt.widgets.Listener) RGB(org.eclipse.swt.graphics.RGB) TreeEvent(org.eclipse.swt.events.TreeEvent) Font(org.eclipse.swt.graphics.Font) GridData(org.eclipse.swt.layout.GridData) TableItem(org.eclipse.swt.widgets.TableItem) Combo(org.eclipse.swt.widgets.Combo) Shell(org.eclipse.swt.widgets.Shell) ShellEvent(org.eclipse.swt.events.ShellEvent) HelpEvent(org.eclipse.swt.events.HelpEvent) FontDialog(org.eclipse.swt.widgets.FontDialog) Group(org.eclipse.swt.widgets.Group) Color(org.eclipse.swt.graphics.Color) FontData(org.eclipse.swt.graphics.FontData) SelectionEvent(org.eclipse.swt.events.SelectionEvent) Menu(org.eclipse.swt.widgets.Menu) Control(org.eclipse.swt.widgets.Control) GridLayout(org.eclipse.swt.layout.GridLayout) KeyEvent(org.eclipse.swt.events.KeyEvent) Group(org.eclipse.swt.widgets.Group) GridLayout(org.eclipse.swt.layout.GridLayout) Button(org.eclipse.swt.widgets.Button) KeyAdapter(org.eclipse.swt.events.KeyAdapter) GridData(org.eclipse.swt.layout.GridData) Text(org.eclipse.swt.widgets.Text) Point(org.eclipse.swt.graphics.Point)

Example 77 with KeyAdapter

use of org.eclipse.swt.events.KeyAdapter in project eclipse.platform.swt by eclipse.

the class AccessibleActionExample method main.

public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());
    shell.setText("Accessible Action Example");
    Button button = new Button(shell, SWT.PUSH);
    button.setText("Button");
    final Canvas customButton = new Canvas(shell, SWT.NONE) {

        @Override
        public Point computeSize(int wHint, int hHint, boolean changed) {
            GC gc = new GC(this);
            Point point = gc.stringExtent(buttonText);
            gc.dispose();
            point.x += MARGIN;
            point.y += MARGIN;
            return point;
        }
    };
    customButton.addPaintListener(e -> {
        Rectangle clientArea = customButton.getClientArea();
        Point stringExtent = e.gc.stringExtent(buttonText);
        int x = clientArea.x + (clientArea.width - stringExtent.x) / 2;
        int y = clientArea.y + (clientArea.height - stringExtent.y) / 2;
        e.gc.drawString(buttonText, x, y);
    });
    customButton.addMouseListener(MouseListener.mouseDownAdapter(e -> {
        int actionIndex = (e.button == 1) ? 0 : 1;
        customButtonAction(actionIndex);
    }));
    customButton.addKeyListener(new KeyAdapter() {

        @Override
        public void keyPressed(KeyEvent e) {
            int modifierKeys = e.stateMask & SWT.MODIFIER_MASK;
            if (modifierKeys == SWT.CTRL || modifierKeys == 0) {
                if (e.character == '1')
                    customButtonAction(0);
                else if (e.character == '2')
                    customButtonAction(1);
            }
        }
    });
    Accessible accessible = customButton.getAccessible();
    accessible.addAccessibleListener(new AccessibleAdapter() {

        @Override
        public void getName(AccessibleEvent e) {
            e.result = buttonText;
        }

        @Override
        public void getKeyboardShortcut(AccessibleEvent e) {
            // default action is 'action 1'
            e.result = "CTRL+1";
        }
    });
    accessible.addAccessibleControlListener(new AccessibleControlAdapter() {

        @Override
        public void getRole(AccessibleControlEvent e) {
            e.detail = ACC.ROLE_PUSHBUTTON;
        }
    });
    accessible.addAccessibleActionListener(new AccessibleActionAdapter() {

        @Override
        public void getActionCount(AccessibleActionEvent e) {
            e.count = 2;
        }

        @Override
        public void getName(AccessibleActionEvent e) {
            if (0 <= e.index && e.index <= 1) {
                if (e.localized) {
                    e.result = AccessibleActionExample.getResourceString("action" + e.index);
                } else {
                    // $NON-NLS-1$
                    e.result = "Action" + e.index;
                }
            }
        }

        @Override
        public void getDescription(AccessibleActionEvent e) {
            if (0 <= e.index && e.index <= 1) {
                e.result = AccessibleActionExample.getResourceString("action" + e.index + "description");
            }
        }

        @Override
        public void doAction(AccessibleActionEvent e) {
            if (0 <= e.index && e.index <= 1) {
                customButtonAction(e.index);
                e.result = ACC.OK;
            }
        }

        @Override
        public void getKeyBinding(AccessibleActionEvent e) {
            switch(e.index) {
                case 0:
                    e.result = "1;CTRL+1";
                    break;
                case 1:
                    e.result = "2;CTRL+2";
                    break;
                default:
                    e.result = null;
            }
        }
    });
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
            display.sleep();
    }
    display.dispose();
}
Also used : AccessibleControlAdapter(org.eclipse.swt.accessibility.AccessibleControlAdapter) Shell(org.eclipse.swt.widgets.Shell) Button(org.eclipse.swt.widgets.Button) ACC(org.eclipse.swt.accessibility.ACC) AccessibleActionAdapter(org.eclipse.swt.accessibility.AccessibleActionAdapter) MissingResourceException(java.util.MissingResourceException) Rectangle(org.eclipse.swt.graphics.Rectangle) Display(org.eclipse.swt.widgets.Display) AccessibleActionEvent(org.eclipse.swt.accessibility.AccessibleActionEvent) AccessibleAdapter(org.eclipse.swt.accessibility.AccessibleAdapter) GC(org.eclipse.swt.graphics.GC) Point(org.eclipse.swt.graphics.Point) AccessibleControlEvent(org.eclipse.swt.accessibility.AccessibleControlEvent) MouseListener(org.eclipse.swt.events.MouseListener) ResourceBundle(java.util.ResourceBundle) SWT(org.eclipse.swt.SWT) KeyEvent(org.eclipse.swt.events.KeyEvent) Accessible(org.eclipse.swt.accessibility.Accessible) AccessibleEvent(org.eclipse.swt.accessibility.AccessibleEvent) Canvas(org.eclipse.swt.widgets.Canvas) FillLayout(org.eclipse.swt.layout.FillLayout) KeyAdapter(org.eclipse.swt.events.KeyAdapter) AccessibleActionAdapter(org.eclipse.swt.accessibility.AccessibleActionAdapter) AccessibleControlEvent(org.eclipse.swt.accessibility.AccessibleControlEvent) AccessibleControlAdapter(org.eclipse.swt.accessibility.AccessibleControlAdapter) Canvas(org.eclipse.swt.widgets.Canvas) KeyAdapter(org.eclipse.swt.events.KeyAdapter) Rectangle(org.eclipse.swt.graphics.Rectangle) AccessibleAdapter(org.eclipse.swt.accessibility.AccessibleAdapter) FillLayout(org.eclipse.swt.layout.FillLayout) Point(org.eclipse.swt.graphics.Point) Point(org.eclipse.swt.graphics.Point) KeyEvent(org.eclipse.swt.events.KeyEvent) Shell(org.eclipse.swt.widgets.Shell) Button(org.eclipse.swt.widgets.Button) AccessibleActionEvent(org.eclipse.swt.accessibility.AccessibleActionEvent) GC(org.eclipse.swt.graphics.GC) AccessibleEvent(org.eclipse.swt.accessibility.AccessibleEvent) Display(org.eclipse.swt.widgets.Display) Accessible(org.eclipse.swt.accessibility.Accessible)

Example 78 with KeyAdapter

use of org.eclipse.swt.events.KeyAdapter in project knime-core by knime.

the class StyledTextEditor method createStyledText.

private Control createStyledText(final Composite parent) {
    m_styledText = new StyledText(parent, SWT.MULTI | SWT.WRAP | SWT.FULL_SELECTION);
    // by default we are a workflow annotation editor
    // can be changed by changing the default font (setDefaultFont(Font))
    m_styledText.setFont(AnnotationEditPart.getWorkflowAnnotationDefaultFont());
    m_styledText.setAlignment(SWT.LEFT);
    m_styledText.setText("");
    m_styledText.setTabs(TAB_SIZE);
    m_styledText.addVerifyKeyListener(new VerifyKeyListener() {

        @Override
        public void verifyKey(final VerifyEvent event) {
            if (event.character == SWT.CR && (event.stateMask & SWT.MOD1) != 0) {
                event.doit = false;
            }
        }
    });
    // forward some events to the cell editor
    m_styledText.addKeyListener(new KeyAdapter() {

        @Override
        public void keyReleased(final KeyEvent e) {
            keyReleaseOccured(e);
        }
    });
    m_styledText.addFocusListener(new FocusAdapter() {

        /**
         * {@inheritDoc}
         */
        @Override
        public void focusLost(final org.eclipse.swt.events.FocusEvent e) {
            // effect of an opening font editor, for instance)
            if (m_allowFocusLost.get()) {
                lostFocus();
            }
        }
    });
    m_styledText.addModifyListener(new ModifyListener() {

        @Override
        public void modifyText(final ModifyEvent e) {
            // super marks it dirty (otherwise no commit at the end)
            fireEditorValueChanged(true, true);
        }
    });
    m_styledText.addExtendedModifyListener(new ExtendedModifyListener() {

        @Override
        public void modifyText(final ExtendedModifyEvent event) {
            if (event.length > 0) {
                textInserted(event.start, event.length);
            }
        }
    });
    m_styledText.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetSelected(final SelectionEvent e) {
            selectionChanged();
        }

        @Override
        public void widgetDefaultSelected(final SelectionEvent e) {
            selectionChanged();
        }
    });
    m_styledText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    addMenu(m_styledText);
    // toolbar gets created first - enable its style buttons!
    selectionChanged();
    return m_styledText;
}
Also used : FocusAdapter(org.eclipse.swt.events.FocusAdapter) ExtendedModifyEvent(org.eclipse.swt.custom.ExtendedModifyEvent) StyledText(org.eclipse.swt.custom.StyledText) ExtendedModifyListener(org.eclipse.swt.custom.ExtendedModifyListener) ModifyListener(org.eclipse.swt.events.ModifyListener) VerifyKeyListener(org.eclipse.swt.custom.VerifyKeyListener) ExtendedModifyListener(org.eclipse.swt.custom.ExtendedModifyListener) KeyAdapter(org.eclipse.swt.events.KeyAdapter) KeyEvent(org.eclipse.swt.events.KeyEvent) ModifyEvent(org.eclipse.swt.events.ModifyEvent) ExtendedModifyEvent(org.eclipse.swt.custom.ExtendedModifyEvent) SelectionEvent(org.eclipse.swt.events.SelectionEvent) GridData(org.eclipse.swt.layout.GridData) VerifyEvent(org.eclipse.swt.events.VerifyEvent) SelectionListener(org.eclipse.swt.events.SelectionListener)

Example 79 with KeyAdapter

use of org.eclipse.swt.events.KeyAdapter in project yamcs-studio by yamcs.

the class NativeTextEditpart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    initFields();
    int style = SWT.NONE;
    NativeTextModel model = getWidgetModel();
    if (model.isShowNativeBorder())
        style |= SWT.BORDER;
    if (model.isMultilineInput()) {
        style |= SWT.MULTI;
        if (model.isShowHScroll())
            style |= SWT.H_SCROLL;
        if (model.isShowVScroll())
            style |= SWT.V_SCROLL;
        if (model.isWrapWords())
            style |= SWT.WRAP;
    } else {
        style |= SWT.SINGLE;
        if (model.isPasswordInput())
            style |= SWT.PASSWORD;
    }
    if (model.isReadOnly())
        style |= SWT.READ_ONLY;
    switch(model.getHorizontalAlignment()) {
        case CENTER:
            style |= SWT.CENTER;
            break;
        case LEFT:
            style |= SWT.LEFT;
            break;
        case RIGHT:
            style |= SWT.RIGHT;
        default:
            break;
    }
    final NativeTextFigure figure = new NativeTextFigure(this, style);
    text = figure.getSWTWidget();
    if (!model.isReadOnly()) {
        if (model.isMultilineInput()) {
            text.addKeyListener(new KeyAdapter() {

                @Override
                public void keyPressed(KeyEvent keyEvent) {
                    if (keyEvent.character == '\r') {
                        // Return key
                        if (text != null && !text.isDisposed() && (text.getStyle() & SWT.MULTI) != 0) {
                            if ((keyEvent.stateMask & SWT.CTRL) != 0) {
                                outputText(text.getText());
                                keyEvent.doit = false;
                                text.getShell().setFocus();
                            }
                        }
                    }
                }
            });
        } else {
            text.addListener(SWT.DefaultSelection, new Listener() {

                @Override
                public void handleEvent(Event e) {
                    outputText(text.getText());
                    switch(getWidgetModel().getFocusTraverse()) {
                        case LOSE:
                            text.getShell().setFocus();
                            break;
                        case NEXT:
                            SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_PREVIOUS);
                            break;
                        case PREVIOUS:
                            SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_NEXT);
                            break;
                        case KEEP:
                        default:
                            break;
                    }
                }
            });
        }
        // Recover text if editing aborted.
        text.addKeyListener(new KeyAdapter() {

            @Override
            public void keyPressed(KeyEvent keyEvent) {
                if (keyEvent.character == SWT.ESC) {
                    text.setText(getWidgetModel().getText());
                }
            }
        });
        text.addFocusListener(new FocusAdapter() {

            @Override
            public void focusLost(FocusEvent e) {
                if (getPV() != null)
                    text.setText(getWidgetModel().getText());
                else if (figure.isEnabled())
                    outputText(text.getText());
            }
        });
    }
    getPVWidgetEditpartDelegate().setUpdateSuppressTime(-1);
    updatePropSheet();
    return figure;
}
Also used : KeyEvent(org.eclipse.swt.events.KeyEvent) FocusAdapter(org.eclipse.swt.events.FocusAdapter) PropertyChangeListener(java.beans.PropertyChangeListener) Listener(org.eclipse.swt.widgets.Listener) KeyAdapter(org.eclipse.swt.events.KeyAdapter) NativeTextModel(org.csstudio.opibuilder.widgets.model.NativeTextModel) FocusEvent(org.eclipse.swt.events.FocusEvent) Event(org.eclipse.swt.widgets.Event) KeyEvent(org.eclipse.swt.events.KeyEvent) PropertyChangeEvent(java.beans.PropertyChangeEvent) NativeTextFigure(org.csstudio.opibuilder.widgets.figures.NativeTextFigure) FocusEvent(org.eclipse.swt.events.FocusEvent)

Example 80 with KeyAdapter

use of org.eclipse.swt.events.KeyAdapter in project yamcs-studio by yamcs.

the class NativeTextEditpartDelegate method doCreateFigure.

@Override
public IFigure doCreateFigure() {
    int style = SWT.NONE;
    if (model.isShowNativeBorder())
        style |= SWT.BORDER;
    if (model.isMultilineInput()) {
        style |= SWT.MULTI;
        if (model.isShowHScroll())
            style |= SWT.H_SCROLL;
        if (model.isShowVScroll())
            style |= SWT.V_SCROLL;
        if (model.isWrapWords())
            style |= SWT.WRAP;
    } else {
        style |= SWT.SINGLE;
        if (model.isPasswordInput())
            style |= SWT.PASSWORD;
    }
    if (model.isReadOnly())
        style |= SWT.READ_ONLY;
    switch(model.getHorizontalAlignment()) {
        case CENTER:
            style |= SWT.CENTER;
            break;
        case LEFT:
            style |= SWT.LEFT;
            break;
        case RIGHT:
            style |= SWT.RIGHT;
        default:
            break;
    }
    final NativeTextFigure figure = new NativeTextFigure(editpart, style);
    text = figure.getSWTWidget();
    if (!model.isReadOnly()) {
        if (model.isMultilineInput()) {
            text.addKeyListener(new KeyAdapter() {

                @Override
                public void keyPressed(KeyEvent keyEvent) {
                    if (keyEvent.character == '\r') {
                        // Return key
                        if (text != null && !text.isDisposed() && (text.getStyle() & SWT.MULTI) != 0) {
                            if ((keyEvent.stateMask & SWT.CTRL) != 0) {
                                outputText(text.getText());
                                keyEvent.doit = false;
                                text.getShell().setFocus();
                            }
                        }
                    }
                }
            });
        } else {
            text.addListener(SWT.DefaultSelection, new Listener() {

                @Override
                public void handleEvent(Event e) {
                    outputText(text.getText());
                    switch(model.getFocusTraverse()) {
                        case LOSE:
                            text.getShell().setFocus();
                            break;
                        case NEXT:
                            SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_PREVIOUS);
                            break;
                        case PREVIOUS:
                            SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_NEXT);
                            break;
                        case KEEP:
                        default:
                            break;
                    }
                }
            });
            text.addTraverseListener(e -> {
                // if key code is not tab, ignore
                if (e.character != '\t' || skipTraverse)
                    return;
                e.doit = false;
                skipTraverse = true;
                if (e.stateMask == 0) {
                    SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_PREVIOUS);
                } else {
                    SingleSourceHelper.swtControlTraverse(text, SWT.TRAVERSE_TAB_NEXT);
                }
                skipTraverse = false;
            });
        }
        // Recover text if editing aborted.
        text.addKeyListener(new KeyAdapter() {

            @Override
            public void keyPressed(KeyEvent keyEvent) {
                if (keyEvent.character == SWT.ESC) {
                    text.setText(model.getText());
                }
            }
        });
        text.addFocusListener(new FocusAdapter() {

            @Override
            public void focusLost(FocusEvent e) {
                if (editpart.getPV() != null)
                    text.setText(model.getText());
                else if (figure.isEnabled())
                    outputText(text.getText());
            }
        });
    }
    return figure;
}
Also used : KeyEvent(org.eclipse.swt.events.KeyEvent) FocusAdapter(org.eclipse.swt.events.FocusAdapter) PropertyChangeListener(java.beans.PropertyChangeListener) Listener(org.eclipse.swt.widgets.Listener) KeyAdapter(org.eclipse.swt.events.KeyAdapter) FocusEvent(org.eclipse.swt.events.FocusEvent) Event(org.eclipse.swt.widgets.Event) KeyEvent(org.eclipse.swt.events.KeyEvent) PropertyChangeEvent(java.beans.PropertyChangeEvent) NativeTextFigure(org.csstudio.opibuilder.widgets.figures.NativeTextFigure) FocusEvent(org.eclipse.swt.events.FocusEvent)

Aggregations

KeyAdapter (org.eclipse.swt.events.KeyAdapter)80 KeyEvent (org.eclipse.swt.events.KeyEvent)80 GridData (org.eclipse.swt.layout.GridData)50 GridLayout (org.eclipse.swt.layout.GridLayout)40 Composite (org.eclipse.swt.widgets.Composite)39 SelectionEvent (org.eclipse.swt.events.SelectionEvent)33 Text (org.eclipse.swt.widgets.Text)30 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)28 Label (org.eclipse.swt.widgets.Label)24 Button (org.eclipse.swt.widgets.Button)20 TableViewer (org.eclipse.jface.viewers.TableViewer)18 ModifyEvent (org.eclipse.swt.events.ModifyEvent)17 ModifyListener (org.eclipse.swt.events.ModifyListener)16 FocusEvent (org.eclipse.swt.events.FocusEvent)15 Point (org.eclipse.swt.graphics.Point)15 Table (org.eclipse.swt.widgets.Table)14 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)12 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)12 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)12 FocusAdapter (org.eclipse.swt.events.FocusAdapter)11