1 11 package org.eclipse.debug.internal.ui.commands.actions; 12 13 import org.eclipse.debug.core.commands.ITerminateHandler; 14 import org.eclipse.debug.internal.ui.DebugPluginImages; 15 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; 16 import org.eclipse.debug.internal.ui.actions.ActionMessages; 17 import org.eclipse.jface.resource.ImageDescriptor; 18 19 24 public class TerminateCommandAction extends DebugCommandAction { 25 26 public TerminateCommandAction() { 27 setActionDefinitionId("org.eclipse.debug.ui.commands.Terminate"); } 29 30 public String getText() { 31 return ActionMessages.TerminateAction_0; 32 } 33 34 public String getHelpContextId() { 35 return "org.eclipse.debug.ui.terminate_action_context"; } 37 38 public String getId() { 39 return "org.eclipse.debug.ui.debugview.toolbar.terminate"; } 41 42 public String getToolTipText() { 43 return ActionMessages.TerminateAction_3; 44 } 45 46 public ImageDescriptor getDisabledImageDescriptor() { 47 return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_TERMINATE); 48 } 49 50 public ImageDescriptor getHoverImageDescriptor() { 51 return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_TERMINATE); 52 } 53 54 public ImageDescriptor getImageDescriptor() { 55 return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_TERMINATE); 56 } 57 58 protected Class getCommandType() { 59 return ITerminateHandler.class; 60 } 61 } 62 | Popular Tags |