Package org.eclipse.swt.custom

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


    StyledText text= fTextViewer.getTextWidget();
    if (text == null)
      return;

    text.addMouseListener(this);
    text.addFocusListener(this);
    fTextViewer.addTextListener(this);

    ISelectionProvider selectionProvider= fTextViewer.getSelectionProvider();
    if (selectionProvider != null)
      selectionProvider.addSelectionChangedListener(this);
View Full Code Here


        StyledText text= fViewer.getTextWidget();
        if (text == null)
          return;

        fViewer.getSelectionProvider().addSelectionChangedListener(this);
        text.addFocusListener(this);
        text.addMouseListener(this);
        text.addModifyListener(this);

        fClipboard= new Clipboard(text.getDisplay());
        fBuffer.setLength(0);
View Full Code Here

      document.addDocumentListener(this);

    text.addKeyListener(this);
    text.addMouseListener(this);
    text.addMouseMoveListener(this);
    text.addFocusListener(this);
    text.addPaintListener(this);
   
    ((ITextViewerExtension4)sourceViewer).addTextPresentationListener(this);
   
//    updateKeyModifierMask();
View Full Code Here

      document.addDocumentListener(this);

    text.addKeyListener(this);
    text.addMouseListener(this);
    text.addMouseMoveListener(this);
    text.addFocusListener(this);
    text.addPaintListener(this);

    updateKeyModifierMask();

    fPreferenceStore.addPropertyChangeListener(this);
View Full Code Here

    text.getDisplay().addFilter(SWT.KeyUp, this);
    text.addKeyListener(this);
    text.addMouseListener(this);
    text.addMouseMoveListener(this);
    text.addFocusListener(this);
    text.addMouseTrackListener(this);

    fTextViewer.addTextListener(this);
   
    fHyperlinkPresenter.install(fTextViewer);
View Full Code Here

        StyledText text= fViewer.getTextWidget();
        if (text == null)
          return;

        fViewer.getSelectionProvider().addSelectionChangedListener(this);
        text.addFocusListener(this);
        text.addMouseListener(this);
        text.addModifyListener(this);

        fClipboard= new Clipboard(text.getDisplay());
        fBuffer.setLength(0);
View Full Code Here

    StyledText text= fTextViewer.getTextWidget();
    if (text == null)
      return;

    text.addMouseListener(this);
    text.addFocusListener(this);
    fTextViewer.addTextListener(this);

    ISelectionProvider selectionProvider= fTextViewer.getSelectionProvider();
    if (selectionProvider != null)
      selectionProvider.addSelectionChangedListener(this);
View Full Code Here

        StyledText text = fTextViewer.getTextWidget();
        if (text == null)
            return;

        text.addMouseListener(this);
        text.addFocusListener(this);
        fTextViewer.addTextListener(this);

        ISelectionProvider selectionProvider = fTextViewer.getSelectionProvider();
        if (selectionProvider != null)
            selectionProvider.addSelectionChangedListener(this);
View Full Code Here

                    changedAfterLastHistoryRequest = true;
                }
            }
        });

        styledText.addFocusListener(new FocusListener() {

            /**
             * When the initial focus is gained, set the caret position to the last position (just after the prompt)
             */
            public void focusGained(FocusEvent e) {
View Full Code Here

  public TextViewerSupport(TextViewer textViewer,
      IHandlerService handlerService) {
    this.textViewer = textViewer;
    this.handlerService = handlerService;
    StyledText textWidget = textViewer.getTextWidget();
    textWidget.addFocusListener(this);
    textWidget.addDisposeListener(this);

    if (textViewer.getTextWidget().isFocusControl()) {
      activateContext();
    }
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.