try {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IFile ifile = getIFile(absolutePath);
AnnotationEditor editor = (AnnotationEditor) page.openEditor(new FileEditorInput(ifile),
"org.apache.uima.caseditor.editor");
editor.selectAndReveal(begin, end - begin);
return editor;
} catch (PartInitException e) {
RutaAddonsPlugin.error(e);
}
return null;