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 28 public class ProfileLastAction extends RelaunchLastAction { 29 30 33 public String getMode() { 34 return ILaunchManager.PROFILE_MODE; 35 } 36 37 40 public String getLaunchGroupId() { 41 return IDebugUIConstants.ID_PROFILE_LAUNCH_GROUP; 42 } 43 44 47 protected String getText() { 48 if(LaunchingResourceManager.isContextLaunchEnabled()) { 49 return ActionMessages.ProfileLastAction_1; 50 } 51 else { 52 return ActionMessages.ProfileLastAction_0; 53 } 54 } 55 56 59 protected String getTooltipText() { 60 return ""; } 62 63 66 protected String getCommandId() { 67 return "org.eclipse.debug.ui.commands.ProfileLast"; } 69 70 73 protected String getDescription() { 74 if(LaunchingResourceManager.isContextLaunchEnabled()) { 75 return ActionMessages.ProfileLastAction_2; 76 } 77 else { 78 return ActionMessages.ProfileLastAction_3; 79 } 80 } 81 } 82 | Popular Tags |