|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.views.framelist.Frame
org.eclipse.ui.views.framelist.TreeFrame
public class 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,
java.lang.Object input)
Constructs a frame for the specified tree viewer. |
|
| Method Summary | |
|---|---|
java.lang.Object[] |
getExpandedElements()
Returns the expanded elements. |
java.lang.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(java.lang.Object[] expandedElements)
Sets the expanded elements. |
void |
setInput(java.lang.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 viewer
public TreeFrame(AbstractTreeViewer viewer,
java.lang.Object input)
viewer - the tree viewerinput - the input element| Method Detail |
|---|
public java.lang.Object[] getExpandedElements()
public java.lang.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(java.lang.Object input)
input - the input elementpublic void setExpandedElements(java.lang.Object[] expandedElements)
expandedElements - the expanded elementspublic void setSelection(ISelection selection)
selection - the selection
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.