public abstract class AbstractLaunchShortcut extends Object implements ILaunchShortcut
This class may be subclassed by clients.
Constructor and Description |
---|
AbstractLaunchShortcut() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected abstract String |
getLaunchConfigurationTypeName()
Returns the launch configuration type name.
|
protected String |
getName(ILaunchConfigurationType type)
Returns the name assigned to the new launch configuration
|
protected abstract void |
initializeConfiguration(ILaunchConfigurationWorkingCopy wc)
Initialize launch attributes on the new launch configuration.
|
protected abstract 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
launch, launch
protected void launch(String mode)
mode
- mode of launch (run, debug or profile)ILaunchManager
protected ILaunchConfiguration findLaunchConfiguration(String mode)
mode
- mode of launch (run, debug or profile)null
if launch is canceledprotected ILaunchConfiguration chooseConfiguration(ILaunchConfiguration[] configs, String mode)
configs
- an array of matching existing launch configurationsmode
- mode of launchnull
if Cancel was pressedprotected String getName(ILaunchConfigurationType type)
protected abstract void initializeConfiguration(ILaunchConfigurationWorkingCopy wc)
wc
- the launch configuration working copy to be initializeIPDELauncherConstants
protected abstract String getLaunchConfigurationTypeName()
protected abstract boolean isGoodMatch(ILaunchConfiguration configuration)
configuration
- the launch configuration being evaluatedtrue
if the launch configuration is a good match for the application or
framework being launched, false
otherwise.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.