java.lang.Object | +--com.ibm.lab.soln.contributions.TreeViewerCollapseNodesAction
This action will collapse the selected nodes of the TreeViewer supplied by its subclass. If no nodes are selected, it will collapse the entire tree. Subclasses must extend the abstract method getViewer which provides the TreeViewer on which to perform the collapse nodes operation.
IViewActionDelegate
Constructor Summary | |
---|---|
TreeViewerCollapseNodesAction()
|
Method Summary | |
---|---|
protected abstract org.eclipse.jface.viewers.TreeViewer |
getTreeViewer()
Subclass must override this method. |
void |
init(org.eclipse.ui.IViewPart vp)
Save a reference to the view. |
void |
run(org.eclipse.jface.action.IAction action)
Collapses the expanded nodes of the viewer. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeViewerCollapseNodesAction()
Method Detail |
protected abstract org.eclipse.jface.viewers.TreeViewer getTreeViewer()
public void init(org.eclipse.ui.IViewPart vp)
init
in interface org.eclipse.ui.IViewActionDelegate
IViewActionDelegate.init(IViewPart)
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.run(IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.selectionChanged(IAction, ISelection)