1 11 package org.eclipse.debug.internal.ui.launchConfigurations; 12 13 import org.eclipse.debug.internal.ui.DebugUIPlugin; 14 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; 15 import org.eclipse.debug.ui.DebugUITools; 16 import org.eclipse.jface.action.Action; 17 import org.eclipse.jface.resource.ImageDescriptor; 18 import org.eclipse.jface.viewers.TreeViewer; 19 20 24 public class CollapseAllLaunchConfigurationAction extends Action { 25 26 29 public static final String ID_COLLAPSEALL_ACTION = DebugUIPlugin.getUniqueIdentifier() + ".ID_COLLAPSEALL_ACTION"; 31 34 private TreeViewer fViewer = null; 35 36 40 public CollapseAllLaunchConfigurationAction(TreeViewer viewer) { 41 fViewer = viewer; 42 } 43 44 47 public ImageDescriptor getImageDescriptor() { 48 return DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COLLAPSE_ALL); 49 } 50 51 54 public String getText() { 55 return LaunchConfigurationsMessages.CollapseAllLaunchConfigurationAction_0; 56 } 57 58 61 public String getToolTipText() { 62 return LaunchConfigurationsMessages.CollapseAllLaunchConfigurationAction_1; 63 } 64 65 68 public ImageDescriptor getDisabledImageDescriptor() { 69 return DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COLLAPSE_ALL); 70 } 71 72 75 public void run() { 76 fViewer.collapseAll(); 77 } 78 79 82 public String getDescription() { 83 return LaunchConfigurationsMessages.CollapseAllLaunchConfigurationAction_2; 84 } 85 } 86 | Popular Tags |