1 11 package org.eclipse.debug.internal.ui.actions; 12 13 14 import org.eclipse.debug.core.ILaunchManager; 15 import org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager; 16 import org.eclipse.debug.ui.IDebugUIConstants; 17 18 27 public class DebugLastAction extends RelaunchLastAction { 28 29 32 public String getMode() { 33 return ILaunchManager.DEBUG_MODE; 34 } 35 36 39 public String getLaunchGroupId() { 40 return IDebugUIConstants.ID_DEBUG_LAUNCH_GROUP; 41 } 42 43 46 protected String getText() { 47 if(LaunchingResourceManager.isContextLaunchEnabled()) { 48 return ActionMessages.DebugLastAction_1; 49 } 50 else { 51 return ActionMessages.DebugLastAction_0; 52 } 53 } 54 55 58 protected String getTooltipText() { 59 return ""; } 61 62 65 protected String getCommandId() { 66 return "org.eclipse.debug.ui.commands.DebugLast"; } 68 69 72 protected String getDescription() { 73 if(LaunchingResourceManager.isContextLaunchEnabled()) { 74 return ActionMessages.DebugLastAction_2; 75 } 76 else { 77 return ActionMessages.DebugLastAction_3; 78 } 79 } 80 } 81 | Popular Tags |