IEditorPart editorPart = this.getActiveEditor();
if (editorPart == null || !(this.getActiveEditor() instanceof ITextEditor)) {
return;
}
ITextEditor textEditor = (ITextEditor) editorPart;
textEditor.showHighlightRangeOnly(showHighlightRangeOnly);
}
public void setHighlightRange(int offset, int length, boolean moveCursor) {
IEditorPart editorPart = this.getActiveEditor();
if (editorPart == null || !(this.getActiveEditor() instanceof ITextEditor)) {