public class StructureViewComposite extends java.lang.Object implements StructureView
Modifier and Type | Class and Description |
---|---|
static class |
StructureViewComposite.StructureViewDescriptor |
StructureView.Scrollable
Disposable.Parent
Constructor and Description |
---|
StructureViewComposite(StructureViewComposite.StructureViewDescriptor... views) |
Modifier and Type | Method and Description |
---|---|
void |
centerSelectedRow() |
void |
disableStoreState() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
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.
|
StructureView |
getSelectedStructureView() |
StructureViewComposite.StructureViewDescriptor [] |
getStructureViews() |
StructureViewModel |
getTreeModel() |
boolean |
isOutdated() |
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.
|
public StructureViewComposite(StructureViewComposite.StructureViewDescriptor... views)
public boolean isOutdated()
public StructureView getSelectedStructureView()
public FileEditor getFileEditor()
StructureView
getFileEditor
in interface StructureView
public boolean navigateToSelectedElement(boolean requestFocus)
StructureView
navigateToSelectedElement
in interface StructureView
requestFocus
- if true, the structure view component also grabs the focus.public javax.swing.JComponent getComponent()
StructureView
getComponent
in interface StructureView
public void dispose()
Disposable
dispose
in interface Disposable
public void centerSelectedRow()
centerSelectedRow
in interface StructureView
public void restoreState()
StructureView
restoreState
in interface StructureView
UserDataHolder.getUserData(com.intellij.openapi.util.Key)
public void storeState()
StructureView
storeState
in interface StructureView
UserDataHolder.putUserData(com.intellij.openapi.util.Key, Object)
public void disableStoreState()
disableStoreState
in interface StructureView
public StructureViewComposite.StructureViewDescriptor [] getStructureViews()
public StructureViewModel getTreeModel()
getTreeModel
in interface StructureView