| java.lang.Object org.eclipse.pde.ui.launcher.AbstractLaunchShortcut org.eclipse.pde.ui.launcher.EclipseLaunchShortcut
EclipseLaunchShortcut | public class EclipseLaunchShortcut extends AbstractLaunchShortcut (Code) | | A launch shortcut capable of launching an Eclipse application.
Given the current selection, either a new Eclipse Application launch configuration is created with default settings, or the user is presented
with a list of suitable existing Eclipse Application launch configurations to choose from.
This class may be substantiated or subclassed by clients.
since: 3.3 |
Method Summary | |
protected ILaunchConfiguration | findLaunchConfiguration(String mode) | protected String | getLaunchConfigurationTypeName() | protected String | getName(ILaunchConfigurationType type) | 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.
- If the selected project is a plug-in that declares an application, then that application is launched.
- If the selected project is a plug-in that declares more than one application, then the user is presented
with a list of choices to choose from.
Once an application is chosen, the plug-in is searched to see if there is a product
bound to this application. | 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. | public void | launch(IEditorPart editor, String mode) | public void | launch(ISelection selection, String mode) |
CONFIGURATION_TYPE | final public static String CONFIGURATION_TYPE(Code) | | |
findLaunchConfiguration | protected ILaunchConfiguration findLaunchConfiguration(String mode)(Code) | | |
getLaunchConfigurationTypeName | protected String getLaunchConfigurationTypeName()(Code) | | Returns the Eclipse application configuration type ID as declared in the plugin.xml
the Eclipse application configuration type ID |
getName | protected String getName(ILaunchConfigurationType type)(Code) | | |
initializeConfiguration | protected void initializeConfiguration(ILaunchConfigurationWorkingCopy wc)(Code) | | 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.
- If the selected project is a plug-in that declares an application, then that application is launched.
- If the selected project is a plug-in that declares more than one application, then the user is presented
with a list of choices to choose from.
Once an application is chosen, the plug-in is searched to see if there is a product
bound to this application. If a product is found, the product is launched instead, since
a product provides a richer branded experience.
since: 3.3 |
isGoodMatch | protected boolean isGoodMatch(ILaunchConfiguration configuration)(Code) | | Returns a boolean value indicating whether the launch configuration is a good match for
the application or product to launch.
Parameters: configuration - the launch configuration being evaluated true if the launch configuration is suitable for the applicationor product to launch with, false otherwise. |
launch | public void launch(IEditorPart editor, String mode)(Code) | | |
launch | public void launch(ISelection selection, String mode)(Code) | | |
|
|