| java.lang.Object org.eclipse.pde.ui.launcher.AbstractLaunchShortcut
All known Subclasses: org.eclipse.pde.ui.launcher.EclipseLaunchShortcut, org.eclipse.pde.ui.launcher.OSGiLaunchShortcut,
AbstractLaunchShortcut | abstract public class AbstractLaunchShortcut implements ILaunchShortcut(Code) | | An abstract class subclassed by the Eclipse Application and OSGi Framework launch shortcuts.
This class may be subclassed by clients.
since: 3.3 |
Method Summary | |
protected ILaunchConfiguration | chooseConfiguration(ILaunchConfiguration[] configs, String mode) Display to the user a list of matching existing launch configurations and return the user's selection. | protected ILaunchConfiguration | findLaunchConfiguration(String mode) This method first tries to locate existing launch configurations that are suitable
for the application or framework being launched. | abstract protected String | getLaunchConfigurationTypeName() Returns the launch configuration type name. | protected String | getName(ILaunchConfigurationType type) | abstract protected void | initializeConfiguration(ILaunchConfigurationWorkingCopy wc) Initialize launch attributes on the new launch configuration. | abstract protected boolean | isGoodMatch(ILaunchConfiguration configuration) Determines whether a given launch configuration is a good match given the current application or framework
being launched. | protected void | launch(String mode) Launches the application in the specified mode, or does nothing if the user canceled
the launch when offered to select one of several available launch configurations. |
chooseConfiguration | protected ILaunchConfiguration chooseConfiguration(ILaunchConfiguration[] configs, String mode)(Code) | | Display to the user a list of matching existing launch configurations and return the user's selection.
Parameters: configs - an array of matching existing launch configurations Parameters: mode - mode of launchthe launch configuration selected by the user or null if Cancel was pressed |
findLaunchConfiguration | protected ILaunchConfiguration findLaunchConfiguration(String mode)(Code) | | This method first tries to locate existing launch configurations that are suitable
for the application or framework being launched.
- If none are found, a new launch configuration is created and initialized
- If one is found, it is launched automatically
- If more than one is found, a selection dialog is presented to the user and the chosen
one will be launched
Parameters: mode - mode of launch (run, debug or profile) a launch configuration to run or null if launch is canceled |
getLaunchConfigurationTypeName | abstract protected String getLaunchConfigurationTypeName()(Code) | | Returns the launch configuration type name.
Must be overridden by subclasses
the launch configuration type name |
getName | protected String getName(ILaunchConfigurationType type)(Code) | | Returns the name assigned to the new launch configuration
a name for the new launch configuration |
initializeConfiguration | abstract protected void initializeConfiguration(ILaunchConfigurationWorkingCopy wc)(Code) | | Initialize launch attributes on the new launch configuration.
Must be overridden by subclasses.
Parameters: wc - the launch configuration working copy to be initialize See Also: IPDELauncherConstants |
isGoodMatch | abstract protected boolean isGoodMatch(ILaunchConfiguration configuration)(Code) | | Determines whether a given launch configuration is a good match given the current application or framework
being launched. This method must be overridden by subclasses. Its purpose is to add criteria on
what makes a good match or not.
Parameters: configuration - the launch configuration being evaluatedtrue if the launch configuration is a good match for the application or framework being launched, false otherwise. |
launch | protected void launch(String mode)(Code) | | Launches the application in the specified mode, or does nothing if the user canceled
the launch when offered to select one of several available launch configurations.
Parameters: mode - mode of launch (run, debug or profile) See Also: org.eclipse.debug.core.ILaunchManager |
|
|