mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 12:15:47 +02:00
Bug 545941: Match launch configuration type
Change-Id: I552ea86b65782f1781d84f2e1fe9b0b8e435e3bd Signed-off-by: John Dallaway <john@dallaway.org.uk>
This commit is contained in:
parent
c2779e8d3e
commit
f85e3146d3
2 changed files with 5 additions and 3 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.debug.ui; singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.debug.ui; singleton:=true
|
||||||
Bundle-Version: 8.3.1.qualifier
|
Bundle-Version: 8.3.2.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.debug.ui.CDebugUIPlugin
|
Bundle-Activator: org.eclipse.cdt.debug.ui.CDebugUIPlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2005, 2018 QNX Software Systems and others.
|
* Copyright (c) 2005, 2019 QNX Software Systems and others.
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials
|
* This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License 2.0
|
* are made available under the terms of the Eclipse Public License 2.0
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* QNX Software Systems - Initial API and implementation
|
* QNX Software Systems - Initial API and implementation
|
||||||
* Ken Ryall (Nokia) - bugs 178731, 246201
|
* Ken Ryall (Nokia) - bugs 178731, 246201
|
||||||
|
* John Dallaway - Match launch configuration type (bug 545941)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.debug.internal.ui.launch;
|
package org.eclipse.cdt.debug.internal.ui.launch;
|
||||||
|
|
||||||
|
@ -96,7 +97,8 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
|
||||||
ILaunchConfiguration configuration = null;
|
ILaunchConfiguration configuration = null;
|
||||||
List<ILaunchConfiguration> candidateConfigs = Collections.emptyList();
|
List<ILaunchConfiguration> candidateConfigs = Collections.emptyList();
|
||||||
try {
|
try {
|
||||||
ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations();
|
ILaunchConfigurationType type = getCLaunchConfigType();
|
||||||
|
ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(type);
|
||||||
candidateConfigs = new ArrayList<>(configs.length);
|
candidateConfigs = new ArrayList<>(configs.length);
|
||||||
for (int i = 0; i < configs.length; i++) {
|
for (int i = 0; i < configs.length; i++) {
|
||||||
ILaunchConfiguration config = configs[i];
|
ILaunchConfiguration config = configs[i];
|
||||||
|
|
Loading…
Add table
Reference in a new issue