public class TreeFrame extends Frame
Constructor and Description |
---|
TreeFrame(AbstractTreeViewer viewer)
Constructs a frame for the specified tree viewer.
|
TreeFrame(AbstractTreeViewer viewer,
Object input)
Constructs a frame for the specified tree viewer.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getIndex, getName, getParent, getToolTipText, setIndex, setName, setParent, setToolTipText
public TreeFrame(AbstractTreeViewer viewer)
viewer
- the tree viewerpublic TreeFrame(AbstractTreeViewer viewer, Object input)
viewer
- the tree viewerinput
- the input elementpublic 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
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.