Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2003-12-17 11:42:28 -0500
committerAlain Magloire2003-12-17 11:42:28 -0500
commit62670bfc706835a172fa5934d416f333d0c2f7c2 (patch)
tree73a5047bb0a7f4e9f29063462f6325eda3a1dd09
parent01deaa0d8bc07279acf1e490fa4885f9622d5c2b (diff)
downloadorg.eclipse.cdt-62670bfc706835a172fa5934d416f333d0c2f7c2.tar.gz
org.eclipse.cdt-62670bfc706835a172fa5934d416f333d0c2f7c2.tar.xz
org.eclipse.cdt-62670bfc706835a172fa5934d416f333d0c2f7c2.zip
Use the BootLoader.getOS() to find out about the OS
in the selection
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
index 30b272f9a30..07e7926fa33 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
@@ -15,6 +15,7 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.launch.AbstractCLaunchDelegate;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
import org.eclipse.cdt.ui.CElementLabelProvider;
+import org.eclipse.core.boot.BootLoader;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
@@ -111,9 +112,10 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
ICDebugConfiguration debugConfig = null;
ICDebugConfiguration[] debugConfigs = CDebugCorePlugin.getDefault().getDebugConfigurations();
List debugList = new ArrayList(debugConfigs.length);
+ String os = BootLoader.getOS();
for (int i = 0; i < debugConfigs.length; i++) {
String platform = debugConfigs[i].getPlatform();
- if (platform == null || platform.equals("native")) {
+ if (platform == null || platform.equals("native") || platform.equals(os)) {
debugList.add(debugConfigs[i]);
}
}

Back to the top