Package com.iizigo.server.launch
Class DevelServerLaunchShortcut
java.lang.Object
com.iizigo.server.launch.DevelServerLaunchShortcut
- All Implemented Interfaces:
ILaunchShortcut
,ILaunchShortcut2
Called when the IIZI Development Server is launched using the Launch Shortcut.
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.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptiongetLaunchableResource
(ISelection selection) Returns anIResource
that maps to the given selection for launch purposes, ornull
if none.getLaunchableResource
(IEditorPart editor) Returns anIResource
that maps to given editor part for launch purposes, ornull
if none.getLaunchConfigurations
(ISelection selection) Returns an array ofILaunchConfiguration
s that apply to the specified selection, an empty collection if one could be created but does not exist, ornull
if default resource mappings should be used to derive associated configurations.getLaunchConfigurations
(IEditorPart editor) Returns an array of existingILaunchConfiguration
s that could be used to launch the given editor part, an empty array if one could be created but does not exist, ornull
if default resource mappings should be used to derive associated configurations.void
launch
(ISelection selection, String mode) Locates a launchable entity in the given selection and launches an application in the specified mode.void
launch
(IEditorPart editor, String mode) Locates a launchable entity in the given active editor, and launches an application in the specified mode.
Constructor Details
DevelServerLaunchShortcut
public DevelServerLaunchShortcut()
Method Details
launch
Locates a launchable entity in the given selection and launches an application in the specified mode. This launch configuration shortcut is responsible for progress reporting as well as error handling, in the event that a launchable entity cannot be found, or launching fails.- Specified by:
launch
in interfaceILaunchShortcut
- Parameters:
selection
- The workbench selection.mode
- One of the launch modes defined by the launch manager.
launch
Locates a launchable entity in the given active editor, and launches an application in the specified mode. This launch configuration shortcut is responsible for progress reporting as well as error handling, in the event that a launchable entity cannot be found, or launching fails.- Specified by:
launch
in interfaceILaunchShortcut
- Parameters:
editor
- The active editor in the workbench.mode
- One of the launch modes defined by the launch manager.
getLaunchableResource
Returns anIResource
that maps to the given selection for launch purposes, ornull
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 (viagetLaunchConfigurations(ISelection)
.- Specified by:
getLaunchableResource
in interfaceILaunchShortcut2
- Parameters:
selection
- The current selection.- Returns:
- An
IResource
that maps to the given selection for launch purposes ornull
if none.
getLaunchableResource
Returns anIResource
that maps to given editor part for launch purposes, ornull
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 (viagetLaunchConfigurations(IEditorPart)
.- Specified by:
getLaunchableResource
in interfaceILaunchShortcut2
- Parameters:
editor
- The current editor part.- Returns:
- An
IResource
that maps to given editor part for launch purposes, ornull
if none.
getLaunchConfigurations
Returns an array ofILaunchConfiguration
s that apply to the specified selection, an empty collection if one could be created but does not exist, ornull
if default resource mappings should be used to derive associated configurations.- Specified by:
getLaunchConfigurations
in interfaceILaunchShortcut2
- Parameters:
selection
- The current selection.- Returns:
- An array of existing
ILaunchConfiguration
s that could be used to launch the given selection, an empty array if one could be created but does not exist, ornull
if default resource mappings should be used to derive associated configurations.
getLaunchConfigurations
Returns an array of existingILaunchConfiguration
s that could be used to launch the given editor part, an empty array if one could be created but does not exist, ornull
if default resource mappings should be used to derive associated configurations.- Specified by:
getLaunchConfigurations
in interfaceILaunchShortcut2
- Parameters:
editor
- The current editor part.- Returns:
- An array of existing
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, ornull
if default resource mappings should be used to derive associated configurations.