Package org.eclipse.swt.custom

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


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

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

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


        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.addMouseListener(getCursorListener());
    styledText.addKeyListener(getCursorListener());

    if (getHelpContextId() != null)
      PlatformUI.getWorkbench().getHelpSystem().setHelp(styledText, getHelpContextId());

View Full Code Here

    IDocument document= sourceViewer.getDocument();
    if (document != null)
      document.addDocumentListener(this);

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

                "EditorPart does not provide an ITextViewer!");
        }

        StyledText textWidget = viewer.getTextWidget();
        textWidget.addControlListener(controlListener);
        textWidget.addMouseListener(mouseListener);
        textWidget.addKeyListener(keyListener);
        viewer.addTextListener(textListener);
        viewer.getSelectionProvider().addSelectionChangedListener(
            selectionChangedListener);
        viewer.addViewportListener(viewportListener);
View Full Code Here

    IDocument document = textViewer.getDocument();
    if (document != null)
      document.addDocumentListener(this);

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

    updateKeyModifierMask();
View Full Code Here

   */
  private void addListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      fKeyAndMouseListener= new KeyAndMouseListener();
      text.addMouseListener(fKeyAndMouseListener);
      text.addKeyListener(fKeyAndMouseListener);
      fTextInputListener= new TextInputListener();
      fTextViewer.addTextInputListener(fTextInputListener);
    }
  }
View Full Code Here

   */
  private void addListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      fKeyAndMouseListener= new KeyAndMouseListener();
      text.addMouseListener(fKeyAndMouseListener);
      text.addKeyListener(fKeyAndMouseListener);
      fTextInputListener= new TextInputListener();
      fTextViewer.addTextInputListener(fTextInputListener);
      fHistory.addOperationHistoryListener(fHistoryListener);
      listenToTextChanges(true);
View Full Code Here

    if (text == null || text.isDisposed())
      return;

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

    fTextViewer.addTextListener(this);
View Full Code Here

        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

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.