Package org.eclipse.pde.ui.launcher
Class OSGiLaunchShortcut
java.lang.Object
org.eclipse.pde.ui.launcher.AbstractLaunchShortcut
org.eclipse.pde.ui.launcher.OSGiLaunchShortcut
- All Implemented Interfaces:
ILaunchShortcut
A launch shortcut capable of launching an OSGi frameowrk
This class may be instantiated or subclassed by clients.
- Since:
- 3.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the launch configuration type name.protected void
initializeConfiguration
(ILaunchConfigurationWorkingCopy configuration) Delegates to the initializer associated with the selected OSGI framework to initialize the launch configurationprotected boolean
isGoodMatch
(ILaunchConfiguration configuration) Determines whether a given launch configuration is a good match given the current application or framework being launched.void
launch
(ISelection selection, String mode) void
launch
(IEditorPart editor, String mode) Methods inherited from class org.eclipse.pde.ui.launcher.AbstractLaunchShortcut
chooseConfiguration, findLaunchConfiguration, getName, launch
-
Constructor Details
-
OSGiLaunchShortcut
public OSGiLaunchShortcut()
-
-
Method Details
-
launch
-
launch
-
getLaunchConfigurationTypeName
Description copied from class:AbstractLaunchShortcut
Returns the launch configuration type name. Must be overridden by subclasses- Specified by:
getLaunchConfigurationTypeName
in classAbstractLaunchShortcut
- Returns:
- the launch configuration type name
-
initializeConfiguration
Delegates to the initializer associated with the selected OSGI framework to initialize the launch configurationRefer to the
org.eclipse.pde.ui.osgiFrameworks
extension point.- Specified by:
initializeConfiguration
in classAbstractLaunchShortcut
- Parameters:
configuration
- the launch configuration working copy to be initialize- See Also:
-
isGoodMatch
Description copied from class:AbstractLaunchShortcut
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.- Specified by:
isGoodMatch
in classAbstractLaunchShortcut
- Parameters:
configuration
- the launch configuration being evaluated- Returns:
true
if the launch configuration is a good match for the application or framework being launched,false
otherwise.
-