コード例 #1
0
 @Override
 public StructureViewBuilder getStructureViewBuilder() {
   Document document = myComponent.getEditor().getDocument();
   VirtualFile file = FileDocumentManager.getInstance().getFile(document);
   if (file == null || !file.isValid()) return null;
   return StructureViewBuilder.PROVIDER.getStructureViewBuilder(
       file.getFileType(), file, myProject);
 }
コード例 #2
0
 /** @see TextEditorComponent#getEditor() */
 @NotNull
 private Editor getActiveEditor() {
   return myComponent.getEditor();
 }