|
Eclipse PDE Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.pde.ui.launcher.AbstractLaunchShortcut
org.eclipse.pde.ui.launcher.EclipseLaunchShortcut
public class EclipseLaunchShortcut
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 instantiated or subclassed by clients.
| Field Summary | |
|---|---|
static String |
CONFIGURATION_TYPE
|
| Constructor Summary | |
|---|---|
EclipseLaunchShortcut()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.eclipse.pde.ui.launcher.AbstractLaunchShortcut |
|---|
chooseConfiguration, launch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIGURATION_TYPE
| Constructor Detail |
|---|
public EclipseLaunchShortcut()
| Method Detail |
|---|
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 evaluated
true 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)
AbstractLaunchShortcut
getName in class AbstractLaunchShortcut
|
Eclipse PDE Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.