| java.lang.Object org.eclipse.ui.views.framelist.TreeViewerFrameSource
All known Subclasses: org.eclipse.ui.views.navigator.NavigatorFrameSource,
TreeViewerFrameSource | public class TreeViewerFrameSource implements IFrameSource(Code) | | Frame source for tree viewers, which uses TreeFrame to capture
the state of the tree viewer.
See Also: TreeFrame |
Constructor Summary | |
public | TreeViewerFrameSource(AbstractTreeViewer viewer) Constructs a new tree viewer frame source for the specified tree viewer. |
Method Summary | |
public 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. | public Frame | getFrame(int whichFrame, int flags) | 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. | public AbstractTreeViewer | getViewer() Returns the tree viewer. | protected void | handlePropertyChange(PropertyChangeEvent event) Handles a property change event from the frame list. |
TreeViewerFrameSource | public TreeViewerFrameSource(AbstractTreeViewer viewer)(Code) | | Constructs a new tree viewer frame source for the specified tree viewer.
Parameters: viewer - the tree viewer |
connectTo | public void connectTo(FrameList frameList)(Code) | | Connects this source as a listener on the frame list,
so that when the current frame changes, the viewer is updated.
|
createFrame | protected TreeFrame createFrame(Object input)(Code) | | Returns a new tree frame capturing the specified input element.
Parameters: input - the input element the tree frame |
frameChanged | protected void frameChanged(TreeFrame frame)(Code) | | Updates the viewer in response to the current frame changing.
Parameters: frame - the new value for the current frame |
getCurrentFrame | protected Frame getCurrentFrame(int flags)(Code) | | Returns the current frame.
Parameters: flags - a bit-wise OR of the frame source flag constants the current frame |
getFrame | public Frame getFrame(int whichFrame, int flags)(Code) | | |
getParentFrame | protected Frame getParentFrame(int flags)(Code) | | Returns the parent frame, or null if there is no parent frame.
Parameters: flags - a bit-wise OR of the frame source flag constants the parent frame, or null |
getSelectionFrame | protected Frame getSelectionFrame(int flags)(Code) | | Returns the frame for the selection, or null if there is no
frame for the selection.
Parameters: flags - a bit-wise OR of the frame source flag constants the selection frame, or null |
getViewer | public AbstractTreeViewer getViewer()(Code) | | Returns the tree viewer.
the tree viewer |
handlePropertyChange | protected void handlePropertyChange(PropertyChangeEvent event)(Code) | | Handles a property change event from the frame list.
Calls frameChanged when the current frame changes.
|
|
|