public interface StructureView extends Disposable
Modifier and Type | Interface and Description |
---|---|
static interface |
StructureView.Scrollable |
Disposable.Parent
Modifier and Type | Method and Description |
---|---|
void |
centerSelectedRow() |
default void |
disableStoreState() |
javax.swing.JComponent |
getComponent()
Returns the Swing component representing the structure view.
|
FileEditor |
getFileEditor()
Returns the editor whose structure is displayed in the structure view.
|
StructureViewModel |
getTreeModel() |
boolean |
navigateToSelectedElement(boolean requestFocus)
Selects the element which corresponds to the current cursor position in the editor
linked to the structure view.
|
void |
restoreState()
Restores the state of the structure view (the expanded and selected elements)
from the user data of the file editor to which it is linked.
|
void |
storeState()
Stores the state of the structure view (the expanded and selected elements)
in the user data of the file editor to which it is linked.
|
dispose
FileEditor getFileEditor()
boolean navigateToSelectedElement(boolean requestFocus)
requestFocus
- if true, the structure view component also grabs the focus.javax.swing.JComponent getComponent()
void centerSelectedRow()
void restoreState()
void storeState()
default void disableStoreState()
StructureViewModel getTreeModel()