|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.views.framelist.Frame | +--org.eclipse.ui.views.framelist.TreeFrame
Frame for tree viewers. This capture the viewer's input element, selection, and expanded elements.
Constructor Summary | |
TreeFrame(AbstractTreeViewer viewer)
Constructs a frame for the specified tree viewer. |
|
TreeFrame(AbstractTreeViewer viewer,
Object input)
Constructs a frame for the specified tree viewer. |
Method Summary | |
Object[] |
getExpandedElements()
Returns the expanded elements. |
Object |
getInput()
Returns the input element. |
ISelection |
getSelection()
Returns the selection. |
AbstractTreeViewer |
getViewer()
Returns the tree viewer. |
void |
restoreState(IMemento memento)
Restore the frame from the specified memento. |
void |
saveState(IMemento memento)
Save the frame state in the given memento. |
void |
setExpandedElements(Object[] expandedElements)
Sets the expanded elements. |
void |
setInput(Object input)
Sets the input element. |
void |
setSelection(ISelection selection)
Sets the selection. |
Methods inherited from class org.eclipse.ui.views.framelist.Frame |
getIndex, getName, getParent, getToolTipText, setIndex, setName, setParent, setToolTipText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeFrame(AbstractTreeViewer viewer)
viewer
- the tree viewerpublic TreeFrame(AbstractTreeViewer viewer, Object input)
viewer
- the tree viewerinput
- the input elementMethod Detail |
public Object[] getExpandedElements()
public Object getInput()
public ISelection getSelection()
public AbstractTreeViewer getViewer()
public void restoreState(IMemento memento)
memento
- memento to restore frame frompublic void saveState(IMemento memento)
memento
- memento to persist the frame state in.public void setInput(Object input)
input
- the input elementpublic void setExpandedElements(Object[] expandedElements)
expandedElements
- the expanded elementspublic void setSelection(ISelection selection)
selection
- the selection
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |