Package org.eclipse.debug.ui.actions
Class RelaunchLastAction
java.lang.Object
org.eclipse.debug.ui.actions.RelaunchLastAction
- All Implemented Interfaces:
- IActionDelegate,- IActionDelegate2,- IWorkbenchWindowActionDelegate
public abstract class RelaunchLastAction
extends Object
implements IWorkbenchWindowActionDelegate, IActionDelegate2
Re-launches the last launch.
- Since:
- 3.8
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Disposes this action delegate.protected abstract StringReturns the command id this action is associated with.protected abstract StringReturns a description for this action (to associate with command).protected ILaunchConfigurationReturn the last launch that occurred in the workspace.protected abstract StringReturns the launch group id of this action.protected abstract StringgetMode()Returns the mode (run or debug) of this action.protected ShellgetShell()Returns the parent shell for this menu itemprotected abstract StringgetText()Returns the text to display on the menu item.protected abstract StringReturns the text to display in the menu item tooltipvoidAllows the action delegate to initialize itself after being created by the proxy action.voidinit(IWorkbenchWindow window) Initializes this action delegate with the workbench window it will work in.voidPerforms this action.voidrunWithEvent(IAction action, Event event) Performs this action, passing the SWT event which triggered it.voidselectionChanged(IAction action, ISelection selection) Notifies this action delegate that the selection in the workbench has changed.
- 
Constructor Details- 
RelaunchLastActionpublic RelaunchLastAction()
 
- 
- 
Method Details- 
disposepublic void dispose()Description copied from interface:IWorkbenchWindowActionDelegateDisposes this action delegate. The implementor should unhook any references to itself so that garbage collection can occur.- Specified by:
- disposein interface- IActionDelegate2
- Specified by:
- disposein interface- IWorkbenchWindowActionDelegate
 
- 
initDescription copied from interface:IWorkbenchWindowActionDelegateInitializes this action delegate with the workbench window it will work in.- Specified by:
- initin interface- IWorkbenchWindowActionDelegate
- Parameters:
- window- the window that provides the context for this delegate
 
- 
initDescription copied from interface:IActionDelegate2Allows the action delegate to initialize itself after being created by the proxy action. This lifecycle method is called after the action delegate has been created and before any other method of the action delegate is called.- Specified by:
- initin interface- IActionDelegate2
- Parameters:
- action- the proxy action that handles the presentation portion of the action.
- Since:
- 3.12
 
- 
runDescription copied from interface:IActionDelegatePerforms this action.This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work. Note: If the action delegate also implements IActionDelegate2, then this method is not invoked but instead therunWithEvent(IAction, Event)method is called.- Specified by:
- runin interface- IActionDelegate
- Parameters:
- action- the action proxy that handles the presentation portion of the action
 
- 
runWithEventDescription copied from interface:IActionDelegate2Performs this action, passing the SWT event which triggered it. This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.Note: This method is called instead of run(IAction).- Specified by:
- runWithEventin interface- IActionDelegate2
- Parameters:
- action- the action proxy that handles the presentation portion of the action
- event- the SWT event which triggered this action being run
- Since:
- 3.12
 
- 
selectionChangedDescription copied from interface:IActionDelegateNotifies this action delegate that the selection in the workbench has changed.Implementers can use this opportunity to change the availability of the action or to modify other presentation properties. When the selection changes, the action enablement state is updated based on the criteria specified in the plugin.xml file. Then the delegate is notified of the selection change regardless of whether the enablement criteria in the plugin.xml file is met. - Specified by:
- selectionChangedin interface- IActionDelegate
- Parameters:
- action- the action proxy that handles presentation portion of the action
- selection- the current selection, or- nullif there is no selection.
 
- 
getLastLaunchReturn the last launch that occurred in the workspace.- Returns:
- the filtered last launch
 
- 
getShellReturns the parent shell for this menu item- Returns:
- the parent shell
 
- 
getModeReturns the mode (run or debug) of this action.- Returns:
- the mode
 
- 
getLaunchGroupIdReturns the launch group id of this action.- Returns:
- the launch group id
 
- 
getTextReturns the text to display on the menu item.- Returns:
- the text for the menu item
 
- 
getTooltipTextReturns the text to display in the menu item tooltip- Returns:
- the text for the tooltip
 
- 
getCommandIdReturns the command id this action is associated with.- Returns:
- command id
 
- 
getDescriptionReturns a description for this action (to associate with command).- Returns:
- command description
 
 
-