|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.views.framelist.TreeViewerFrameSource
Frame source for tree viewers, which uses TreeFrame
to capture
the state of the tree viewer.
TreeFrame
Field Summary |
Fields inherited from interface org.eclipse.ui.views.framelist.IFrameSource |
CURRENT_FRAME, FULL_CONTEXT, PARENT_FRAME, SELECTION_FRAME |
Constructor Summary | |
TreeViewerFrameSource(AbstractTreeViewer viewer)
Constructs a new tree viewer frame source for the specified tree viewer. |
Method Summary | |
void |
connectTo(FrameList frameList)
Connects this source as a listener on the frame list, so that when the current frame changes, the viewer is updated. |
protected TreeFrame |
createFrame(Object input)
Returns a new tree frame capturing the specified input element. |
protected void |
frameChanged(TreeFrame frame)
Updates the viewer in response to the current frame changing. |
protected Frame |
getCurrentFrame(int flags)
Returns the current frame. |
Frame |
getFrame(int whichFrame,
int flags)
Returns a new frame describing the state of the source. |
protected Frame |
getParentFrame(int flags)
Returns the parent frame, or null if there is no parent frame. |
protected Frame |
getSelectionFrame(int flags)
Returns the frame for the selection, or null if there is no
frame for the selection. |
AbstractTreeViewer |
getViewer()
Returns the tree viewer. |
protected void |
handlePropertyChange(PropertyChangeEvent event)
Handles a property change event from the frame list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeViewerFrameSource(AbstractTreeViewer viewer)
viewer
- the tree viewerMethod Detail |
public void connectTo(FrameList frameList)
protected TreeFrame createFrame(Object input)
input
- the input element
protected void frameChanged(TreeFrame frame)
frame
- the new value for the current frameprotected Frame getCurrentFrame(int flags)
flags
- a bit-wise OR of the frame source flag constants
public Frame getFrame(int whichFrame, int flags)
IFrameSource
FULL_CONTEXT
flag is specified, then the full
context of the source should be captured by the frame.
Otherwise, only the visible aspects of the frame, such as the name and tool tip text,
will be used.
getFrame
in interface IFrameSource
flags
- a bit-wise OR of the flag constants defined in this interface
protected Frame getParentFrame(int flags)
null
if there is no parent frame.
flags
- a bit-wise OR of the frame source flag constants
null
protected Frame getSelectionFrame(int flags)
null
if there is no
frame for the selection.
flags
- a bit-wise OR of the frame source flag constants
null
public AbstractTreeViewer getViewer()
protected void handlePropertyChange(PropertyChangeEvent event)
frameChanged
when the current frame changes.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |