Examples of resetHighlightRange()


Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

   */
  public void run() {

    ITextEditor editor= getTextEditor();

    editor.resetHighlightRange();
    boolean show= editor.showsHighlightRangeOnly();
    setChecked(!show);
    editor.showHighlightRangeOnly(!show);
  }

View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

                  activePage.closeEditor(editor, false);
                  continue;
                }
              }
            } catch (final BadLocationException e) {
              textEditor.resetHighlightRange();
              return;
            }
          } else {
            if (!found) {
              if (JAVA.equals(extension) && !openedResource.getName().contains("_")) {
View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

        (oldHighlightRange.getOffset() == fDestRegion.getOffset() && oldHighlightRange.getLength() == fDestRegion.getLength());

      try {
        if (sameHighlightRange)
          // force the cursor being moved
          textEditor.resetHighlightRange();

        textEditor.setHighlightRange(fDestRegion.getOffset(), fDestRegion.getLength(), true);

        if (!sameHighlightRange)
          // mark the location in navigation history
View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

        if (!sameHighlightRange)
          // mark the location in navigation history
          textEditor.getSelectionProvider().setSelection(new TextSelection(fDestRegion.getOffset(), 0));
      } catch (IllegalArgumentException x) {
        textEditor.resetHighlightRange();
      }
    }
  }
}
View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

    IEditorPart editorPart = this.getActiveEditor();
    if (editorPart == null || !(this.getActiveEditor() instanceof ITextEditor)) {
      return;
    }
    ITextEditor textEditor = (ITextEditor) editorPart;
    textEditor.resetHighlightRange();
  }

  public ISelectionProvider getSelectionProvider() {
    IEditorPart editorPart = this.getActiveEditor();
    if (editorPart == null || !(this.getActiveEditor() instanceof ITextEditor)) {
View Full Code Here

Examples of org.eclipse.ui.texteditor.ITextEditor.resetHighlightRange()

    @Override
    public void run() {

        ITextEditor editor = getTextEditor();

        editor.resetHighlightRange();
        boolean show = editor.showsHighlightRangeOnly();
        setChecked(!show);
        editor.showHighlightRangeOnly(!show);
    }
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.