Package org.eclipse.swt.custom

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


  private void removeListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      if (fKeyAndMouseListener != null) {
        text.removeMouseListener(fKeyAndMouseListener);
        text.removeKeyListener(fKeyAndMouseListener);
        fKeyAndMouseListener= null;
      }
      if (fTextInputListener != null) {
        fTextViewer.removeTextInputListener(fTextInputListener);
        fTextInputListener= null;
View Full Code Here


    fTextViewer.removeTextListener(this);

    StyledText text= fTextViewer.getTextWidget();
    if (text != null && !text.isDisposed()) {
      text.removeKeyListener(this);
      text.removeMouseListener(this);
    }
  }

  /**
 
View Full Code Here

  private void removeListeners() {
    StyledText text= fTextViewer.getTextWidget();
    if (text != null) {
      if (fKeyAndMouseListener != null) {
        text.removeMouseListener(fKeyAndMouseListener);
        text.removeKeyListener(fKeyAndMouseListener);
        fKeyAndMouseListener= null;
      }
      if (fTextInputListener != null) {
        fTextViewer.removeTextInputListener(fTextInputListener);
        fTextInputListener= null;
View Full Code Here

  public void setActiveEditor(AbstractConfigEditor targetEditor) {
    if (this.editor != null && this.editor.getTextViewer() != null
        && this.editor.getTextViewer().getTextWidget() != null) {
      StyledText textWidget = this.editor.getTextViewer().getTextWidget();
      textWidget.removeMouseListener(this);
      textWidget.removeKeyListener(this);
      updateAnnotations(new HashSet<OccurrenceLocation>());
    }
    this.editor = targetEditor;
    setChecked(prefStore.getBoolean(STS_MARK_OCCURRENCES));
    if (this.editor != null && this.editor.getTextViewer() != null
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.