Class ATLLaunchShortcut
- java.lang.Object
-
- org.eclipse.m2m.atl.core.ui.launch.ATLLaunchShortcut
-
- All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchShortcut
public class ATLLaunchShortcut extends java.lang.Object implements org.eclipse.debug.ui.ILaunchShortcutATL Launch Shortcut.
-
-
Constructor Summary
Constructors Constructor Description ATLLaunchShortcut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.debug.core.ILaunchConfigurationchooseConfiguration(java.util.List<org.eclipse.debug.core.ILaunchConfiguration> configList)Returns a configuration from the given collection of configurations that should be launched, ornullto cancel.protected org.eclipse.debug.core.ILaunchConfigurationTypegetConfigurationType()java.lang.StringgetModuleNameFromFile(org.eclipse.core.resources.IFile file)Returns the default module name.protected voidlaunch(org.eclipse.core.resources.IFile file, java.lang.String mode)Launches a configuration from ATL file.voidlaunch(org.eclipse.jface.viewers.ISelection selection, java.lang.String mode)voidlaunch(org.eclipse.ui.IEditorPart editor, java.lang.String mode)
-
-
-
Method Detail
-
launch
public void launch(org.eclipse.jface.viewers.ISelection selection, java.lang.String mode)- Specified by:
launchin interfaceorg.eclipse.debug.ui.ILaunchShortcut- See Also:
ILaunchShortcut.launch(org.eclipse.jface.viewers.ISelection, java.lang.String)
-
launch
public void launch(org.eclipse.ui.IEditorPart editor, java.lang.String mode)- Specified by:
launchin interfaceorg.eclipse.debug.ui.ILaunchShortcut- See Also:
ILaunchShortcut.launch(org.eclipse.ui.IEditorPart, java.lang.String)
-
launch
protected void launch(org.eclipse.core.resources.IFile file, java.lang.String mode)Launches a configuration from ATL file.- Parameters:
file- the filemode- the launch mode
-
chooseConfiguration
protected org.eclipse.debug.core.ILaunchConfiguration chooseConfiguration(java.util.List<org.eclipse.debug.core.ILaunchConfiguration> configList)
Returns a configuration from the given collection of configurations that should be launched, ornullto cancel. Default implementation opens a selection dialog that allows the user to choose one of the specified launch configurations. Returns the chosen configuration, ornullif the user cancels.- Parameters:
configList- list of configurations to choose from- Returns:
- configuration to launch or
nullto cancel
-
getModuleNameFromFile
public java.lang.String getModuleNameFromFile(org.eclipse.core.resources.IFile file)
Returns the default module name.- Parameters:
file- the file name- Returns:
- the default module name
-
getConfigurationType
protected org.eclipse.debug.core.ILaunchConfigurationType getConfigurationType()
-
-