Package org.eclipse.swt.custom

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


    fTextViewer.addTextListener(this);

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

  /**
   * Disposes this paint manager. The paint manager uninstalls itself
   * and clears all registered painters. This method is also called when the
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

    te.addKeyListener(new KeyAdapter() {
      public void keyPressed(KeyEvent e) {
        handleSelectionChanged(part);
      }
    });
    te.addMouseListener(new MouseAdapter() {
      public void mouseDown(MouseEvent e) {
        // syncViewport(part);
        handleSelectionChanged(part);
      }
    });
View Full Code Here

    this.editor = targetEditor;
    setChecked(prefStore.getBoolean(STS_MARK_OCCURRENCES));
    if (this.editor != null && this.editor.getTextViewer() != null
        && this.editor.getTextViewer().getTextWidget() != null) {
      StyledText textWidget = this.editor.getTextViewer().getTextWidget();
      textWidget.addMouseListener(this);
      textWidget.addKeyListener(this);
    }
    selectionChanged();
  }
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.