From ffde7d87bc108b6f7a7ff7876cc4c59cc15b8d4c Mon Sep 17 00:00:00 2001 From: David Inglis Date: Thu, 25 Mar 2004 19:36:58 +0000 Subject: [PATCH] simple change to use native defined in interface --- .../cdt/debug/internal/core/DebugConfiguration.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java index 17b7c466a14..6c3af672438 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java @@ -21,7 +21,6 @@ public class DebugConfiguration implements ICDebugConfiguration { private IConfigurationElement fElement; private HashSet fModes; private HashSet fCPUs; - public static final String NATIVE = "native"; //$NON-NLS-1$ public DebugConfiguration(IConfigurationElement element) { fElement = element; @@ -47,7 +46,7 @@ public class DebugConfiguration implements ICDebugConfiguration { public String getPlatform() { String platform = getConfigurationElement().getAttribute("platform"); //$NON-NLS-1$ if (platform == null) { - return NATIVE; + return PLATFORM_NATIVE; } return platform; } @@ -68,7 +67,7 @@ public class DebugConfiguration implements ICDebugConfiguration { String nativeCPU = BootLoader.getOSArch(); boolean ret = false; if ( nativeCPU.startsWith(cpu) ) { - ret = getCPUs().contains(NATIVE); + ret = getCPUs().contains(PLATFORM_NATIVE); } return ret || getCPUs().contains(cpu); } @@ -97,7 +96,7 @@ public class DebugConfiguration implements ICDebugConfiguration { String cpus = getConfigurationElement().getAttribute("cpu"); //$NON-NLS-1$ if (cpus == null) { fCPUs = new HashSet(1); - fCPUs.add(NATIVE); + fCPUs.add(PLATFORM_NATIVE); } else { String nativeCPU = BootLoader.getOSArch(); @@ -107,7 +106,7 @@ public class DebugConfiguration implements ICDebugConfiguration { String cpu = tokenizer.nextToken().trim(); fCPUs.add(cpu); if (nativeCPU.startsWith(cpu)) { // os arch be cpu{le/be} - fCPUs.add(NATIVE); + fCPUs.add(PLATFORM_NATIVE); } } }