public class DevelServerLaunchShortcut extends Object implements ILaunchShortcut2
The DebugUITools class defines the following two launch group-related methods:
public static int openLaunchConfigurationDialogOnGroup(Shell shell, IStructuredSelection selection, String groupIdentifier); public static int openLaunchConfigurationPropertiesDialog(Shell shell, ILaunchConfiguration configuration, String groupIdentifier);Both of these methods are used to bring up UI components subject to filtering provided by the specified launch group. In both cases, groupIdentifier is the value of the id attribute in a launch group XML declaration.
These calls are used when a launch configuration isn't set correctly for the launch to complete.
Constructor and Description |
---|
DevelServerLaunchShortcut() |
Modifier and Type | Method and Description |
---|---|
IResource |
getLaunchableResource(IEditorPart editor)
Returns an
IResource that maps to given editor part for launch
purposes, or null if none. |
IResource |
getLaunchableResource(ISelection selection)
Returns an
IResource that maps to the given selection for launch
purposes, or null if none. |
ILaunchConfiguration[] |
getLaunchConfigurations(IEditorPart editor)
Returns an array of existing
ILaunchConfiguration s that could be
used to launch the given editor part, an empty array if one
could be created but does not exist, or null if default resource
mappings should be used to derive associated configurations. |
ILaunchConfiguration[] |
getLaunchConfigurations(ISelection selection)
Returns an array of
ILaunchConfiguration s that apply to the specified
selection, an empty collection if one could be created but does not exist, or
null if default resource mappings should be used to derive associated
configurations. |
void |
launch(IEditorPart editor,
String mode)
Locates a launchable entity in the given active editor, and launches
an application in the specified mode.
|
void |
launch(ISelection selection,
String mode)
Locates a launchable entity in the given selection and launches
an application in the specified mode.
|
public void launch(ISelection selection, String mode)
launch
in interface ILaunchShortcut
selection
- The workbench selection.mode
- One of the launch modes defined by the launch manager.public void launch(IEditorPart editor, String mode)
launch
in interface ILaunchShortcut
editor
- The active editor in the workbench.mode
- One of the launch modes defined by the launch manager.public IResource getLaunchableResource(ISelection selection)
IResource
that maps to the given selection for launch
purposes, or null
if none. The resource is used to resolve a configuration
to launch if this shortcut does not provide specific launch configurations to launch
for the selection (via getLaunchConfigurations(ISelection)
.getLaunchableResource
in interface ILaunchShortcut2
selection
- The current selection.IResource
that maps to the given selection for launch
purposes or null
if none.public IResource getLaunchableResource(IEditorPart editor)
IResource
that maps to given editor part for launch
purposes, or null
if none. The resource is used to resolve a configuration
to launch if this shortcut does not provide specific launch configurations to launch
for the editor (via getLaunchConfigurations(IEditorPart)
.getLaunchableResource
in interface ILaunchShortcut2
editor
- The current editor part.IResource
that maps to given editor part for launch
purposes, or null
if none.public ILaunchConfiguration[] getLaunchConfigurations(ISelection selection)
ILaunchConfiguration
s that apply to the specified
selection, an empty collection if one could be created but does not exist, or
null
if default resource mappings should be used to derive associated
configurations.getLaunchConfigurations
in interface ILaunchShortcut2
selection
- The current selection.ILaunchConfiguration
s that could be
used to launch the given selection, an empty array if one could be created
but does not exist, or null
if default resource mappings should
be used to derive associated configurations.public ILaunchConfiguration[] getLaunchConfigurations(IEditorPart editor)
ILaunchConfiguration
s that could be
used to launch the given editor part, an empty array if one
could be created but does not exist, or null
if default resource
mappings should be used to derive associated configurations.getLaunchConfigurations
in interface ILaunchShortcut2
editor
- The current editor part.ILaunchConfiguration
s that could be
used to launch the given editor part/editor input, an empty array if one
could be created but does not exist, or null
if default
resource mappings should be used to derive associated configurations.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.