1 11 package org.eclipse.jdt.internal.ui.packageview; 12 13 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 14 import org.eclipse.jdt.internal.ui.JavaPluginImages; 15 import org.eclipse.jface.action.Action; 16 import org.eclipse.ui.PlatformUI; 17 18 21 class CollapseAllAction extends Action { 22 23 private PackageExplorerPart fPackageExplorer; 24 25 CollapseAllAction(PackageExplorerPart part) { 26 super(PackagesMessages.CollapseAllAction_label); 27 setDescription(PackagesMessages.CollapseAllAction_description); 28 setToolTipText(PackagesMessages.CollapseAllAction_tooltip); 29 JavaPluginImages.setLocalImageDescriptors(this, "collapseall.gif"); 31 fPackageExplorer= part; 32 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.COLLAPSE_ALL_ACTION); 33 } 34 35 public void run() { 36 fPackageExplorer.collapseAll(); 37 } 38 } 39 | Popular Tags |