diff options
author | David Inglis | 2004-03-25 19:36:58 +0000 |
---|---|---|
committer | David Inglis | 2004-03-25 19:36:58 +0000 |
commit | ffde7d87bc108b6f7a7ff7876cc4c59cc15b8d4c (patch) | |
tree | 6d328fd7c1a9c68a6753fadca2d6b7596f2cd36f | |
parent | de5291751a857bb58e012f54e338d0e2ab54a820 (diff) | |
download | org.eclipse.cdt-ffde7d87bc108b6f7a7ff7876cc4c59cc15b8d4c.tar.gz org.eclipse.cdt-ffde7d87bc108b6f7a7ff7876cc4c59cc15b8d4c.tar.xz org.eclipse.cdt-ffde7d87bc108b6f7a7ff7876cc4c59cc15b8d4c.zip |
simple change to use native defined in interface
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java | 9 |
1 files 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); } } } |