diff options
author | Darin Wright | 2009-09-11 20:26:11 +0000 |
---|---|---|
committer | Darin Wright | 2009-09-11 20:26:11 +0000 |
commit | a52db1114949b27bb48aae2e2fdd1015c58fedb6 (patch) | |
tree | 8ef1a1cefe8783e7fcf2ce20bfb940614f6681ce /org.eclipse.debug.ui/ui | |
parent | 7b1c4786a4afee75286f977eb97dd462bf499375 (diff) | |
download | eclipse.platform.debug-a52db1114949b27bb48aae2e2fdd1015c58fedb6.tar.gz eclipse.platform.debug-a52db1114949b27bb48aae2e2fdd1015c58fedb6.tar.xz eclipse.platform.debug-a52db1114949b27bb48aae2e2fdd1015c58fedb6.zip |
Bug 278249 - [launching] DebugUITools.getLaunchGroup(..) can return unsuitable launch group
Diffstat (limited to 'org.eclipse.debug.ui/ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java index 34187f1fe..d45692926 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java @@ -1097,6 +1097,9 @@ public class LaunchConfigurationManager implements ILaunchListener, ISavePartici * the specified mode, or <code>null</code> if none */ public ILaunchGroup getLaunchGroup(ILaunchConfigurationType type, String mode) { + if (!type.supportsMode(mode)) { + return null; + } String category = type.getCategory(); ILaunchGroup[] groups = getLaunchGroups(); ILaunchGroup extension = null; |