diff options
author | John Cortell | 2009-05-28 16:42:31 +0000 |
---|---|---|
committer | John Cortell | 2009-05-28 16:42:31 +0000 |
commit | e38496644ab05a272cd9929681035ea16207f5f7 (patch) | |
tree | adacd0f28d5b09ea4e438c98295a998a67296773 /launch | |
parent | 645678d32f1573473a7b547cd10da6773707957f (diff) | |
download | org.eclipse.cdt-e38496644ab05a272cd9929681035ea16207f5f7.tar.gz org.eclipse.cdt-e38496644ab05a272cd9929681035ea16207f5f7.tar.xz org.eclipse.cdt-e38496644ab05a272cd9929681035ea16207f5f7.zip |
Fixed 278251. Launch Group can end up launching a configuration in an unsupported mode
Diffstat (limited to 'launch')
-rw-r--r-- | launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/MultiLaunchConfigurationDelegate.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/MultiLaunchConfigurationDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/MultiLaunchConfigurationDelegate.java index 032bb98b89e..3acaabc91cf 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/MultiLaunchConfigurationDelegate.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/MultiLaunchConfigurationDelegate.java @@ -34,9 +34,7 @@ import org.eclipse.debug.core.model.ILaunchConfigurationDelegate; import org.eclipse.debug.core.model.IProcess; import org.eclipse.debug.core.model.LaunchConfigurationDelegate; import org.eclipse.debug.internal.ui.DebugUIPlugin; -import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugUIConstants; -import org.eclipse.debug.ui.ILaunchGroup; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.ui.PlatformUI; @@ -249,8 +247,8 @@ public class MultiLaunchConfigurationDelegate extends LaunchConfigurationDelegat } else { localMode = mode; } - ILaunchGroup launchGroup = DebugUITools.getLaunchGroup(conf, localMode); - if (launchGroup == null) { + + if (!conf.supportsMode(localMode)) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), |