public class EclipseLaunchShortcut extends AbstractLaunchShortcut
This class may be instantiated or subclassed by clients.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_TYPE
The launch configuration type name that this shortcut uses
|
| Constructor and Description |
|---|
EclipseLaunchShortcut() |
| Modifier and Type | Method and Description |
|---|---|
protected ILaunchConfiguration |
findLaunchConfiguration(String mode)
This method first tries to locate existing launch configurations that are suitable
for the application or framework being launched.
|
protected String |
getLaunchConfigurationTypeName()
Returns the Eclipse application configuration type ID as declared in the plugin.xml
|
protected String |
getName(ILaunchConfigurationType type)
Returns the name assigned to the new launch configuration
|
protected void |
initializeConfiguration(ILaunchConfigurationWorkingCopy wc)
Initializes a new Eclipse Application launch configuration with defaults based
on the current selection:
If there is no selection or the selected project is a plug-in that does not declare an application,
the default product is launched.
|
protected boolean |
isGoodMatch(ILaunchConfiguration configuration)
Returns a boolean value indicating whether the launch configuration is a good match for
the application or product to launch.
|
void |
launch(IEditorPart editor,
String mode) |
void |
launch(ISelection selection,
String mode) |
chooseConfiguration, launchpublic static final String CONFIGURATION_TYPE
public void launch(IEditorPart editor, String mode)
public void launch(ISelection selection, String mode)
protected ILaunchConfiguration findLaunchConfiguration(String mode)
AbstractLaunchShortcut
findLaunchConfiguration in class AbstractLaunchShortcutmode - mode of launch (run, debug or profile)null if launch is canceledprotected boolean isGoodMatch(ILaunchConfiguration configuration)
isGoodMatch in class AbstractLaunchShortcutconfiguration - the launch configuration being evaluatedtrue if the launch configuration is suitable for the application
or product to launch with, false otherwise.protected void initializeConfiguration(ILaunchConfigurationWorkingCopy wc)
initializeConfiguration in class AbstractLaunchShortcutwc - the launch configuration working copy to be initializeIPDELauncherConstantsprotected String getLaunchConfigurationTypeName()
getLaunchConfigurationTypeName in class AbstractLaunchShortcutprotected String getName(ILaunchConfigurationType type)
AbstractLaunchShortcutgetName in class AbstractLaunchShortcut
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.