public class JavaFileTreeModel extends TextEditorBasedStructureViewModel implements StructureViewModel.ElementInfoProvider, PlaceHolder<java.lang.String>
StructureViewModel.ElementInfoProvider, StructureViewModel.ExpandInfoProvider
Disposable.Parent
Constructor and Description |
---|
JavaFileTreeModel(PsiClassOwner file,
Editor editor) |
Modifier and Type | Method and Description |
---|---|
Filter [] |
getFilters()
Returns the array of actions for filtering items in the tree.
|
Grouper [] |
getGroupers()
Returns the list of actions for grouping items in the tree.
|
java.util.Collection<NodeProvider> |
getNodeProviders() |
java.lang.String |
getPlace() |
protected PsiClassOwner |
getPsiFile() |
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.
|
boolean |
isAlwaysLeaf(StructureViewTreeElement element) |
boolean |
isAlwaysShowsPlus(StructureViewTreeElement element) |
protected boolean |
isSuitable(PsiElement element) |
void |
setPlace(java.lang.String place) |
boolean |
shouldEnterElement(java.lang.Object element) |
addEditorPositionListener, addModelListener, dispose, findAcceptableElement, fireModelUpdate, getCurrentEditorElement, getEditor, isEnabled, removeEditorPositionListener, removeModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEditorPositionListener, addModelListener, dispose, getCurrentEditorElement, removeEditorPositionListener, removeModelListener
public JavaFileTreeModel(PsiClassOwner file, Editor editor)
public Filter [] getFilters()
TreeModel
getFilters
in interface TreeModel
getFilters
in class TextEditorBasedStructureViewModel
Filter.EMPTY_ARRAY
public java.util.Collection<NodeProvider> getNodeProviders()
getNodeProviders
in interface ProvidingTreeModel
getNodeProviders
in class TextEditorBasedStructureViewModel
public Grouper [] getGroupers()
TreeModel
getGroupers
in interface TreeModel
getGroupers
in class TextEditorBasedStructureViewModel
Grouper.EMPTY_ARRAY
public StructureViewTreeElement getRoot()
StructureViewModel
getRoot
in interface StructureViewModel
getRoot
in interface TreeModel
public boolean shouldEnterElement(java.lang.Object element)
shouldEnterElement
in interface StructureViewModel
shouldEnterElement
in class TextEditorBasedStructureViewModel
public Sorter [] getSorters()
TreeModel
getSorters
in interface TreeModel
getSorters
in class TextEditorBasedStructureViewModel
Sorter.EMPTY_ARRAY
protected PsiClassOwner getPsiFile()
getPsiFile
in class TextEditorBasedStructureViewModel
public boolean isAlwaysShowsPlus(StructureViewTreeElement element)
isAlwaysShowsPlus
in interface StructureViewModel.ElementInfoProvider
public boolean isAlwaysLeaf(StructureViewTreeElement element)
isAlwaysLeaf
in interface StructureViewModel.ElementInfoProvider
protected boolean isSuitable(PsiElement element)
isSuitable
in class TextEditorBasedStructureViewModel
protected java.lang.Class [] getSuitableClasses()
TextEditorBasedStructureViewModel
getSuitableClasses
in class TextEditorBasedStructureViewModel
public void setPlace(java.lang.String place)
setPlace
in interface PlaceHolder<java.lang.String>
public java.lang.String getPlace()
getPlace
in interface PlaceProvider<java.lang.String>