Package org.eclipse.swt.custom

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


      };
    });
    */

    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);
   
View Full Code Here

        }

        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);
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

      };
    }

    final StyledText styledText= fViewer.getTextWidget();
    if (styledText != null && !styledText.isDisposed())
      styledText.addKeyListener(fKeyListener);

//    BusyIndicator.showWhile(styledText.getDisplay(), new Runnable() {
//      public void run() {

        fInvocationOffset= fViewer.getSelectedRange().x;
View Full Code Here

    StyledText text= fTextViewer.getTextWidget();
    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);
View Full Code Here

    provider.addSelectionChangedListener(this);

    fTextViewer.addTextListener(this);

    StyledText text= fTextViewer.getTextWidget();
    text.addKeyListener(this);
    text.addMouseListener(this);
  }

  /**
   * Disposes this paint manager. The paint manager uninstalls itself
View Full Code Here

      };
    });
    */

    styledText.addMouseListener(getCursorListener());
    styledText.addKeyListener(getCursorListener());

    // Disable orientation switching until we fully support it.
    styledText.addListener(SWT.OrientationChange, new Listener() {
      public void handleEvent(Event event) {
        event.doit= false;
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.