public interface StructureViewModel extends TreeModel, Disposable
StructureViewModel.ElementInfoProvider
and StructureViewModel.ExpandInfoProvider
to control tree expansion behavior.Modifier and Type | Interface and Description |
---|---|
static interface |
StructureViewModel.ElementInfoProvider |
static interface |
StructureViewModel.ExpandInfoProvider |
Disposable.Parent
Modifier and Type | Method and Description |
---|---|
void |
addEditorPositionListener(FileEditorPositionListener listener)
Adds a listener which gets notified when the selection in the editor linked to the
structure view moves to a different element visible in the structure view.
|
void |
addModelListener(ModelListener modelListener)
Adds a listener which gets notified when the data represented by the structure view
is changed and the structure view needs to be rebuilt.
|
void |
dispose()
Disposes of the model.
|
java.lang.Object |
getCurrentEditorElement()
Returns the element currently selected in the editor linked to the structure view.
|
StructureViewTreeElement |
getRoot()
Returns the root element of the structure view tree.
|
void |
removeEditorPositionListener(FileEditorPositionListener listener)
Removes a listener which gets notified when the selection in the editor linked to the
structure view moves to a different element visible in the structure view.
|
void |
removeModelListener(ModelListener modelListener)
Removes a listener which gets notified when the data represented by the structure view
is changed and the structure view needs to be rebuilt.
|
boolean |
shouldEnterElement(java.lang.Object element) |
getFilters, getGroupers, getSorters
java.lang.Object getCurrentEditorElement()
void addEditorPositionListener(FileEditorPositionListener listener)
listener
- the listener to add.void removeEditorPositionListener(FileEditorPositionListener listener)
listener
- the listener to remove.void addModelListener(ModelListener modelListener)
modelListener
- the listener to add.void removeModelListener(ModelListener modelListener)
modelListener
- the listener to remove.StructureViewTreeElement getRoot()
void dispose()
dispose
in interface Disposable
boolean shouldEnterElement(java.lang.Object element)