Skip to main content
summaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorJohn Cortell2009-05-28 16:42:31 +0000
committerJohn Cortell2009-05-28 16:42:31 +0000
commite38496644ab05a272cd9929681035ea16207f5f7 (patch)
treeadacd0f28d5b09ea4e438c98295a998a67296773 /launch
parent645678d32f1573473a7b547cd10da6773707957f (diff)
downloadorg.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.java6
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(),

Back to the top