1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fixed 278251. Launch Group can end up launching a configuration in an unsupported mode

This commit is contained in:
John Cortell 2009-05-28 16:42:31 +00:00
parent 645678d32f
commit e38496644a

View file

@ -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(),