Class EMFTVMLaunchConfigurationDelegate
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.launcher.EMFTVMLaunchConfigurationDelegate
-
- All Implemented Interfaces:
org.eclipse.debug.core.model.ILaunchConfigurationDelegate
public class EMFTVMLaunchConfigurationDelegate extends java.lang.Object implements org.eclipse.debug.core.model.ILaunchConfigurationDelegate
Launches EMFTVM transformation modules.
-
-
Constructor Summary
Constructors Constructor Description EMFTVMLaunchConfigurationDelegate()
Creates a newEMFTVMLaunchConfigurationDelegate
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleResolver
createModuleResolver(java.lang.String path)
Creates aModuleResolver
using the comma-separated modulepath
.static boolean
getBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Retrieves the boolean value ofoption
formodelName
frommodelOptions
.static int
getPort(org.eclipse.debug.core.ILaunch launch)
Returns theNetworkDebugger
port.void
launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
static void
setBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Sets the boolean value ofoption
formodelName
frommodelOptions
.static void
unsetBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Unsets the boolean value ofoption
formodelName
frommodelOptions
.
-
-
-
Constructor Detail
-
EMFTVMLaunchConfigurationDelegate
public EMFTVMLaunchConfigurationDelegate()
Creates a newEMFTVMLaunchConfigurationDelegate
.
-
-
Method Detail
-
launch
public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
- Specified by:
launch
in interfaceorg.eclipse.debug.core.model.ILaunchConfigurationDelegate
- Throws:
org.eclipse.core.runtime.CoreException
-
getBoolOption
public static boolean getBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Retrieves the boolean value ofoption
formodelName
frommodelOptions
.- Parameters:
modelOptions
- the model options mapmodelName
- the model nameoption
- the option to retrieve- Returns:
- the option value
-
setBoolOption
public static void setBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Sets the boolean value ofoption
formodelName
frommodelOptions
.- Parameters:
modelOptions
- the model options mapmodelName
- the model nameoption
- the option to set
-
unsetBoolOption
public static void unsetBoolOption(java.util.Map<java.lang.String,java.lang.String> modelOptions, java.lang.String modelName, java.lang.String option)
Unsets the boolean value ofoption
formodelName
frommodelOptions
.- Parameters:
modelOptions
- the model options mapmodelName
- the model nameoption
- the option to unset
-
getPort
public static int getPort(org.eclipse.debug.core.ILaunch launch) throws org.eclipse.core.runtime.CoreException
Returns theNetworkDebugger
port.- Parameters:
launch
- the launch object- Returns:
- the
NetworkDebugger
port. - Throws:
org.eclipse.core.runtime.CoreException
-
createModuleResolver
public static ModuleResolver createModuleResolver(java.lang.String path)
Creates aModuleResolver
using the comma-separated modulepath
.- Parameters:
path
- the module path- Returns:
- the
ModuleResolver
.
-
-