title: get ITextViewer from IEDitorPart (Eclipse)
body: <p>Eclipse RCP question</p>
  
  <p>I open file with:</p>
  
  <pre><code>IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
  IEditorPart editorPart = IDE.openEditor(page, file);
  </code></pre>
  
  <p>I also get document with:</p>
  
  <pre><code>IDocument doc = ((ITextEditor)editorPart).getDocumentProvider().getDocument(editorPart.getEditorInput());
  </code></pre>
  
  <p>I need to get to text viewer of that document (for creating LinkedModeUI), is there any way to do this?</p>