Eclipse RCP вопрос
Я открываю файл с:
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorPart editorPart = IDE.openEditor(page, file);
Я также получаю документ с:
IDocument doc = ((ITextEditor)editorPart).getDocumentProvider().getDocument(editorPart.getEditorInput());
Мне нужно добраться до средства просмотра текста этого документа (для создания LinkedModeUI), есть ли способ сделать это?