public class StructureViewModelBase extends TextEditorBasedStructureViewModel
StructureViewModel.ElementInfoProvider, StructureViewModel.ExpandInfoProvider
Disposable.Parent
Constructor and Description |
---|
StructureViewModelBase(PsiFile psiFile,
Editor editor,
StructureViewTreeElement root) |
StructureViewModelBase(PsiFile psiFile,
StructureViewTreeElement root) |
Modifier and Type | Method and Description |
---|---|
StructureViewTreeElement |
getRoot()
Returns the root element of the structure view tree.
|
Sorter [] |
getSorters()
Returns the array of actions for sorting items in the tree.
|
protected java.lang.Class [] |
getSuitableClasses()
Returns the list of PSI element classes which are shown as structure view elements.
|
StructureViewModelBase |
withSorters(Sorter... sorters) |
StructureViewModelBase |
withSuitableClasses(java.lang.Class... suitableClasses) |
addEditorPositionListener, addModelListener, dispose, findAcceptableElement, fireModelUpdate, getCurrentEditorElement, getEditor, getFilters, getGroupers, getNodeProviders, getPsiFile, isEnabled, isSuitable, removeEditorPositionListener, removeModelListener, shouldEnterElement
public StructureViewModelBase(PsiFile psiFile, Editor editor, StructureViewTreeElement root)
public StructureViewModelBase(PsiFile psiFile, StructureViewTreeElement root)
public StructureViewTreeElement getRoot()
StructureViewModel
public StructureViewModelBase withSorters(Sorter... sorters)
public StructureViewModelBase withSuitableClasses(java.lang.Class... suitableClasses)
public Sorter [] getSorters()
TreeModel
getSorters
in interface TreeModel
getSorters
in class TextEditorBasedStructureViewModel
Sorter.EMPTY_ARRAY
protected java.lang.Class [] getSuitableClasses()
TextEditorBasedStructureViewModel
getSuitableClasses
in class TextEditorBasedStructureViewModel