public abstract class TreeBasedStructureViewBuilder extends java.lang.Object implements StructureViewBuilder
StructureViewBuilder
interface which uses the
standard implementation of the StructureView
component and allows to
customize the data displayed in the structure view.EP_NAME, PROVIDER
Constructor and Description |
---|
TreeBasedStructureViewBuilder() |
Modifier and Type | Method and Description |
---|---|
StructureView |
createStructureView(FileEditor fileEditor,
Project project)
Returns the structure view implementation for the specified file
|
abstract StructureViewModel |
createStructureViewModel(Editor editor)
Returns the structure view model defining the data displayed in the structure view
for a specific file.
|
boolean |
isRootNodeShown()
Override returning
false if root node created by createStructureViewModel(Editor editor) shall not be visible |
public abstract StructureViewModel createStructureViewModel(Editor editor)
TextEditorBasedStructureViewModel
public StructureView createStructureView(FileEditor fileEditor, Project project)
StructureViewBuilder
createStructureView
in interface StructureViewBuilder
fileEditor
- the editor for which the structure view is requested. Can be null if file is not open (e.g. structure is requested
from the project view)project
- the project containing the file for which the structure view is requested.TreeBasedStructureViewBuilder
public boolean isRootNodeShown()
false
if root node created by createStructureViewModel(Editor editor)
shall not be visiblefalse
if root node shall not be visible in structure tree.