1 11 package org.eclipse.debug.internal.ui.commands.actions; 12 13 import org.eclipse.debug.core.commands.IDisconnectHandler; 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.debug.ui.IDebugUIConstants; 18 import org.eclipse.jface.resource.ImageDescriptor; 19 24 public class DisconnectCommandAction extends DebugCommandAction{ 25 26 public String getText() { 27 return ActionMessages.DisconnectAction_0; 28 } 29 30 public String getHelpContextId() { 31 return "org.eclipse.debug.ui.disconnect_action_context"; } 33 34 public String getId() { 35 return "org.eclipse.debug.ui.debugview.toolbar.disconnect"; } 37 38 public String getToolTipText() { 39 return ActionMessages.DisconnectAction_3; 40 } 41 42 public ImageDescriptor getDisabledImageDescriptor() { 43 return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_DISCONNECT); 44 } 45 46 public ImageDescriptor getHoverImageDescriptor() { 47 return DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_DISCONNECT); 48 } 49 50 public ImageDescriptor getImageDescriptor() { 51 return DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_DISCONNECT); 52 } 53 54 protected Class getCommandType() { 55 return IDisconnectHandler.class; 56 } 57 } 58 | Popular Tags |