Package com.iizigo.server.launch
Class DevelServerLaunchShortcut
- java.lang.Object
- com.iizigo.server.launch.DevelServerLaunchShortcut
 
- All Implemented Interfaces:
- org.eclipse.debug.ui.ILaunchShortcut,- org.eclipse.debug.ui.ILaunchShortcut2
 - public class DevelServerLaunchShortcut extends java.lang.Object implements org.eclipse.debug.ui.ILaunchShortcut2Called 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- Constructors - Constructor - Description - DevelServerLaunchShortcut()
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - org.eclipse.core.resources.IResource- getLaunchableResource(org.eclipse.jface.viewers.ISelection selection)Returns an- IResourcethat maps to the given selection for launch purposes, or- nullif none.- org.eclipse.core.resources.IResource- getLaunchableResource(org.eclipse.ui.IEditorPart editor)Returns an- IResourcethat maps to given editor part for launch purposes, or- nullif none.- org.eclipse.debug.core.ILaunchConfiguration[]- getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection)Returns an array of- ILaunchConfigurations that apply to the specified selection, an empty collection if one could be created but does not exist, or- nullif default resource mappings should be used to derive associated configurations.- org.eclipse.debug.core.ILaunchConfiguration[]- getLaunchConfigurations(org.eclipse.ui.IEditorPart editor)Returns an array of existing- ILaunchConfigurations that could be used to launch the given editor part, an empty array if one could be created but does not exist, or- nullif default resource mappings should be used to derive associated configurations.- void- launch(org.eclipse.jface.viewers.ISelection selection, java.lang.String mode)Locates a launchable entity in the given selection and launches an application in the specified mode.- void- launch(org.eclipse.ui.IEditorPart editor, java.lang.String mode)Locates a launchable entity in the given active editor, and launches an application in the specified mode.
 
- Method Detail- launch- public void launch(org.eclipse.jface.viewers.ISelection selection, java.lang.String mode)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:
- launchin interface- org.eclipse.debug.ui.ILaunchShortcut
- Parameters:
- selection- The workbench selection.
- mode- One of the launch modes defined by the launch manager.
 
 - launch- public void launch(org.eclipse.ui.IEditorPart editor, java.lang.String mode)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:
- launchin interface- org.eclipse.debug.ui.ILaunchShortcut
- Parameters:
- editor- The active editor in the workbench.
- mode- One of the launch modes defined by the launch manager.
 
 - getLaunchableResource- public org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.jface.viewers.ISelection selection) Returns an- IResourcethat maps to the given selection for launch purposes, or- nullif 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).- Specified by:
- getLaunchableResourcein interface- org.eclipse.debug.ui.ILaunchShortcut2
- Parameters:
- selection- The current selection.
- Returns:
- An IResourcethat maps to the given selection for launch purposes ornullif none.
 
 - getLaunchableResource- public org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.ui.IEditorPart editor) Returns an- IResourcethat maps to given editor part for launch purposes, or- nullif 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).- Specified by:
- getLaunchableResourcein interface- org.eclipse.debug.ui.ILaunchShortcut2
- Parameters:
- editor- The current editor part.
- Returns:
- An IResourcethat maps to given editor part for launch purposes, ornullif none.
 
 - getLaunchConfigurations- public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection) Returns an array of- ILaunchConfigurations that apply to the specified selection, an empty collection if one could be created but does not exist, or- nullif default resource mappings should be used to derive associated configurations.- Specified by:
- getLaunchConfigurationsin interface- org.eclipse.debug.ui.ILaunchShortcut2
- Parameters:
- selection- The current selection.
- Returns:
- An array of existing ILaunchConfigurations that could be used to launch the given selection, an empty array if one could be created but does not exist, ornullif default resource mappings should be used to derive associated configurations.
 
 - getLaunchConfigurations- public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.ui.IEditorPart editor) Returns an array of existing- ILaunchConfigurations that could be used to launch the given editor part, an empty array if one could be created but does not exist, or- nullif default resource mappings should be used to derive associated configurations.- Specified by:
- getLaunchConfigurationsin interface- org.eclipse.debug.ui.ILaunchShortcut2
- Parameters:
- editor- The current editor part.
- Returns:
- An array of existing ILaunchConfigurations that could be used to launch the given editor part/editor input, an empty array if one could be created but does not exist, ornullif default resource mappings should be used to derive associated configurations.