if (element instanceof FileEditorInput) {
FileEditorInput fileInput = (FileEditorInput) element;
IFile file = fileInput.getFile();
INlpElement nlpElement = CasEditorPlugin.getNlpModel().findMember(file);
if (nlpElement instanceof DocumentElement) {
try {
org.apache.uima.caseditor.core.IDocument workingCopy =
((DocumentElement) nlpElement).getDocument(true);
AnnotationDocument document = new AnnotationDocument();
document.setProject(nlpElement.getNlpProject());
document.setDocument(workingCopy);
return document;
}
catch (CoreException e) {