Examples of addTraverseListener()


Examples of org.eclipse.swt.custom.CCombo.addTraverseListener()

              .getFirstElement();
        }
      }
    });

    comboBox.addTraverseListener(new TraverseListener() {
      public void keyTraversed(TraverseEvent e) {
        if (e.detail == SWT.TRAVERSE_ESCAPE
            || e.detail == SWT.TRAVERSE_RETURN) {
          e.doit = false;
        }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.addTraverseListener()

     * Method declared on CellEditor.
     */
    protected Control createControl(Composite parent)
    {
      CCombo comboBox = (CCombo)super.createControl(parent);
      comboBox.addTraverseListener(new TraverseListener()
      {
        @Override
        public void keyTraversed(TraverseEvent e)
        {
              if (e.detail == SWT.TRAVERSE_TAB_NEXT)
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.addTraverseListener()

        //Added because we don't want the console to close when the user presses ESC
        //(as it would when it's on a floating window)
        //we do that because ESC is meant to clear the current line (and as such,
        //should do that action and not close the console).
        styledText.addTraverseListener(new TraverseListener() {

            public void keyTraversed(TraverseEvent e) {
                if (e.detail == SWT.TRAVERSE_ESCAPE) {
                    e.doit = false;
                }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.addTraverseListener()

              }
            }
          };
        }

        control.addTraverseListener(tabeditingListener);

        if (editorActivationListener != null
            && !editorActivationListener.isEmpty()) {
          Object[] ls = editorActivationListener.getListeners();
          for (int i = 0; i < ls.length; i++) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.addTraverseListener()

    @Override
    public void addEditorControlListeners() {
        Control editorControl = getEditorControl();
        if (editorControl != null && !editorControl.isDisposed()
                && editMode == EditModeEnum.INLINE) {
            editorControl.addTraverseListener(this.traverseListener);
            editorControl.addFocusListener(this.focusListener);
        }
    }

    @Override
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.addTraverseListener()

    public void addEditorControlListeners() {
        Control editorControl = getEditorControl();
        if (editorControl != null && !editorControl.isDisposed() && this.editMode == EditModeEnum.INLINE) {
            // only add the focus and traverse listeners for inline mode
            editorControl.addFocusListener(this.focusListener);
            editorControl.addTraverseListener(this.traverseListener);
        }
    }

    @Override
    public void removeEditorControlListeners() {
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.addTraverseListener()

              }
            }
          };
        }

        control.addTraverseListener(tabeditingListener);

        if (editorActivationListener != null
            && !editorActivationListener.isEmpty()) {
          Object[] ls = editorActivationListener.getListeners();
          for (int i = 0; i < ls.length; i++) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Label.addTraverseListener()

    Label label = new Label(header, SWT.NONE);
    label
        .setText((getMessage() != null && getMessage().trim().length() > 0) ? getMessage()
            : WorkbenchMessages.FilteredItemsSelectionDialog_patternLabel);
    label.addTraverseListener(new TraverseListener() {
      public void keyTraversed(TraverseEvent e) {
        if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
          e.detail = SWT.TRAVERSE_NONE;
          pattern.setFocus();
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Label.addTraverseListener()

    Label listLabel = new Label(labels, SWT.NONE);
    listLabel
        .setText(WorkbenchMessages.FilteredItemsSelectionDialog_listLabel);

    listLabel.addTraverseListener(new TraverseListener() {
      public void keyTraversed(TraverseEvent e) {
        if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
          e.detail = SWT.TRAVERSE_NONE;
          list.getTable().setFocus();
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Label.addTraverseListener()

        checkPage();
      }
    });

    // give focus to the branch if label is activated using the mnemonic
    branchLabel.addTraverseListener(new TraverseListener() {
      public void keyTraversed(TraverseEvent e) {
        branch.setFocus();
        branch.selectAll();
      }
    });
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.