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:
parent
645678d32f
commit
e38496644a
1 changed files with 2 additions and 4 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue