public class StructureViewComposite extends java.lang.Object implements StructureView
| Modifier and Type | Class and Description |
|---|---|
static class |
StructureViewComposite.StructureViewDescriptor |
StructureView.ScrollableDisposable.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()
StructureViewgetFileEditor in interface StructureViewpublic boolean navigateToSelectedElement(boolean requestFocus)
StructureViewnavigateToSelectedElement in interface StructureViewrequestFocus - if true, the structure view component also grabs the focus.public javax.swing.JComponent getComponent()
StructureViewgetComponent in interface StructureViewpublic void dispose()
Disposabledispose in interface Disposablepublic void centerSelectedRow()
centerSelectedRow in interface StructureViewpublic void restoreState()
StructureViewrestoreState in interface StructureViewUserDataHolder.getUserData(com.intellij.openapi.util.Key)public void storeState()
StructureViewstoreState in interface StructureViewUserDataHolder.putUserData(com.intellij.openapi.util.Key, Object)public void disableStoreState()
disableStoreState in interface StructureViewpublic StructureViewComposite.StructureViewDescriptor [] getStructureViews()
public StructureViewModel getTreeModel()
getTreeModel in interface StructureView