171172173174175176177178
* @see TreeViewer#expandAll() * @see TreeViewer#collapseAll() */ public CommonToolBarBuilder enableTreeAction(TreeViewer viewer) { treeAction = new DropDownAction(new CollapseAllAction(viewer), new ExpandAllAction(viewer)); return this; }
50515253545556
shell = new Shell(PlatformUI.getWorkbench().getDisplay()); } public ExpandAllActionTest() { viewer = new TreeViewer(shell); action = new ExpandAllAction(viewer); }