Package org.eclipse.debug.core.model
Interface ILaunchConfigurationDelegate
- All Known Subinterfaces:
ILaunchConfigurationDelegate2
- All Known Implementing Classes:
LaunchConfigurationDelegate
public interface ILaunchConfigurationDelegate
A launch configuration delegate performs launching for a
specific type of launch configuration. A launch configuration
delegate is defined by the
delegate
attribute
of a launchConfigurationType
extension.
This interface is intended to be implemented by clients.
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
launch
(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) Launches the given configuration in the specified mode, contributing debug targets and/or processes to the given launch object.default String
showCommandLine
(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) Gets the command line to launch the given configuration in the specified mode.
-
Method Details
-
launch
void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException Launches the given configuration in the specified mode, contributing debug targets and/or processes to the given launch object. The launch object has already been registered with the launch manager.- Parameters:
configuration
- the configuration to launchmode
- the mode in which to launch, one of the mode constants defined byILaunchManager
-RUN_MODE
orDEBUG_MODE
.monitor
- progress monitor, ornull
progress monitor, ornull
. A cancelable progress monitor is provided by the Job framework. It should be noted that the setCanceled(boolean) method should never be called on the provided monitor or the monitor passed to any delegates from this method; due to a limitation in the progress monitor framework using the setCanceled method can cause entire workspace batch jobs to be canceled, as the canceled flag is propagated up the top-level parent monitor. The provided monitor is not guaranteed to have been started.launch
- the launch object to contribute processes and debug targets to- Throws:
CoreException
- if launching fails
-
showCommandLine
default String showCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException Gets the command line to launch the given configuration in the specified mode.- Parameters:
configuration
- the configuration to build command line formode
- the mode in which to build command line, one of the mode constants defined byILaunchManager
-RUN_MODE
orDEBUG_MODE
.monitor
- progress monitor, ornull
progress monitor, ornull
. A cancelable progress monitor is provided by the Job framework. It should be noted that the setCanceled(boolean) method should never be called on the provided monitor or the monitor passed to any delegates from this method; due to a limitation in the progress monitor framework using the setCanceled method can cause entire workspace batch jobs to be canceled, as the canceled flag is propagated up the top-level parent monitor. The provided monitor is not guaranteed to have been started.launch
- the launch to create command line for- Returns:
- the command line string
- Throws:
CoreException
- if building the command line failed- Since:
- 3.13
-