|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StructureViewModel
Defines the model for the data displayed in the standard structure view or file structure popup component. The model of the standard structure view is represented as a tree of elements.
TreeBasedStructureViewBuilder.createStructureViewModel(),
TextEditorBasedStructureViewModel| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.intellij.ide.util.treeView.smartTree.TreeModel |
|---|
getFilters, getGroupers, getSorters |
| Method Detail |
|---|
@Nullable 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.@NotNull StructureViewTreeElement getRoot()
getRoot in interface TreeModelvoid dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||