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

Bug 257449. Search for any type of launch, not just C.

Change-Id: Ib8ec324aaf3ae1723c6dea53770965b600314203
Signed-off-by: Jon Beniston <jon@beniston.com>
This commit is contained in:
Jon Beniston 2015-08-20 15:12:49 +01:00 committed by Elena Laskavaia
parent 41b5a72c73
commit 167a605b57

View file

@ -89,10 +89,9 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
*/
protected ILaunchConfiguration findLaunchConfiguration(IBinary bin, String mode) {
ILaunchConfiguration configuration = null;
ILaunchConfigurationType configType = getCLaunchConfigType();
List<ILaunchConfiguration> candidateConfigs = Collections.emptyList();
try {
ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(configType);
ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations();
candidateConfigs = new ArrayList<ILaunchConfiguration>(configs.length);
for (int i = 0; i < configs.length; i++) {
ILaunchConfiguration config = configs[i];