Class AtlLaunchConfigurationDelegate
- java.lang.Object
-
- org.eclipse.debug.core.model.LaunchConfigurationDelegate
-
- org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate
-
- All Implemented Interfaces:
org.eclipse.debug.core.model.ILaunchConfigurationDelegate
,org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
public class AtlLaunchConfigurationDelegate extends org.eclipse.debug.core.model.LaunchConfigurationDelegate
The method "launch" is launched when you click on the button "Run" or "Debug".
-
-
Constructor Summary
Constructors Constructor Description AtlLaunchConfigurationDelegate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convertPath(java.lang.String path)
Convert "launch configuration style" paths to EMF uris: ext:path => file:path (file system resource) uri:uri => uri (EMF uri) path => platform:/resource/path (workspace resource) Unchanged paths: platform:/plugin/path (plugin resource) pathmap:path (pathmap resource, e.g.static java.util.Map<java.lang.String,java.lang.String>
convertPaths(java.util.Map<java.lang.String,java.lang.String> modelPaths)
Convert model map paths.static org.eclipse.core.resources.IFile
getFileFromModuleName(java.lang.String moduleName)
Returns the file matching the given module name.void
launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
-
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getBreakpoints, getBuildOrder, getLaunch, getProjectsForProblemSearch, isLaunchProblem, preLaunchCheck, saveBeforeLaunch
-
-
-
-
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
- Throws:
org.eclipse.core.runtime.CoreException
- See Also:
ILaunchConfigurationDelegate.launch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)
-
getFileFromModuleName
public static org.eclipse.core.resources.IFile getFileFromModuleName(java.lang.String moduleName)
Returns the file matching the given module name.- Parameters:
moduleName
- the module name- Returns:
- the file
-
convertPaths
public static java.util.Map<java.lang.String,java.lang.String> convertPaths(java.util.Map<java.lang.String,java.lang.String> modelPaths)
Convert model map paths.- Parameters:
modelPaths
- the model path map- Returns:
- the converted map
-
convertPath
public static java.lang.String convertPath(java.lang.String path)
Convert "launch configuration style" paths to EMF uris:- ext:path => file:path (file system resource)
- uri:uri => uri (EMF uri)
- path => platform:/resource/path (workspace resource)
- platform:/plugin/path (plugin resource)
- pathmap:path (pathmap resource, e.g. UML2 profile)
- Parameters:
path
- the path as created by the launchConfiguration- Returns:
- the converted path
-
-