1 11 package org.eclipse.debug.internal.ui.actions; 12 13 import org.eclipse.debug.internal.ui.DebugPluginImages; 14 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; 15 import org.eclipse.jface.action.Action; 16 import org.eclipse.jface.viewers.TreeViewer; 17 18 21 public class CollapseAllAction extends Action { 22 23 private TreeViewer fViewer; 24 25 public CollapseAllAction(TreeViewer viewer) { 26 super(ActionMessages.CollapseAllAction_0, DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COLLAPSE_ALL)); 27 setToolTipText(ActionMessages.CollapseAllAction_0); 28 setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COLLAPSE_ALL)); 29 setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_COLLAPSE_ALL)); 30 fViewer = viewer; 31 } 32 33 36 public void run() { 37 fViewer.collapseAll(); 38 } 39 40 } 41 | Popular Tags |