public class StructureViewCompositeModel extends StructureViewModelBase implements Disposable, StructureViewModel.ElementInfoProvider, StructureViewModel.ExpandInfoProvider
StructureViewModel.ElementInfoProvider, StructureViewModel.ExpandInfoProvider
Disposable.Parent
Constructor and Description |
---|
StructureViewCompositeModel(PsiFile file,
Editor editor,
java.util.List<? extends StructureViewComposite.StructureViewDescriptor> views) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCurrentEditorElement()
Returns the element currently selected in the editor linked to the structure view.
|
Filter [] |
getFilters()
Returns the array of actions for filtering items in the tree.
|
java.util.Collection<NodeProvider> |
getNodeProviders() |
boolean |
isAlwaysLeaf(StructureViewTreeElement element) |
boolean |
isAlwaysShowsPlus(StructureViewTreeElement element) |
boolean |
isAutoExpand(StructureViewTreeElement element) |
boolean |
isSmartExpand() |
getRoot, getSorters, getSuitableClasses, withSorters, withSuitableClasses
addEditorPositionListener, addModelListener, dispose, findAcceptableElement, fireModelUpdate, getEditor, getGroupers, getPsiFile, isEnabled, isSuitable, removeEditorPositionListener, removeModelListener, shouldEnterElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEditorPositionListener, addModelListener, getRoot, removeEditorPositionListener, removeModelListener, shouldEnterElement
getGroupers, getSorters
getMinimumAutoExpandDepth
public StructureViewCompositeModel(PsiFile file, Editor editor, java.util.List<? extends StructureViewComposite.StructureViewDescriptor> views)
public java.lang.Object getCurrentEditorElement()
StructureViewModel
getCurrentEditorElement
in interface StructureViewModel
getCurrentEditorElement
in class TextEditorBasedStructureViewModel
public java.util.Collection<NodeProvider> getNodeProviders()
getNodeProviders
in interface ProvidingTreeModel
getNodeProviders
in class TextEditorBasedStructureViewModel
public Filter [] getFilters()
TreeModel
getFilters
in interface TreeModel
getFilters
in class TextEditorBasedStructureViewModel
Filter.EMPTY_ARRAY
public boolean isAlwaysShowsPlus(StructureViewTreeElement element)
isAlwaysShowsPlus
in interface StructureViewModel.ElementInfoProvider
public boolean isAlwaysLeaf(StructureViewTreeElement element)
isAlwaysLeaf
in interface StructureViewModel.ElementInfoProvider
public boolean isAutoExpand(StructureViewTreeElement element)
isAutoExpand
in interface StructureViewModel.ExpandInfoProvider
public boolean isSmartExpand()
isSmartExpand
in interface StructureViewModel.ExpandInfoProvider