Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-04-12 09:54:38 -0400
committerDavid Inglis2004-04-12 09:54:38 -0400
commit189c17b74d0bff29257b734224d96d04058acd1c (patch)
tree29dd2e07cc60b5ceec513ce296dd3a5e38b1ec69 /core/org.eclipse.cdt.core.aix
parent0eb69047b450b0f033d3534e240c5f87ebfc1eae (diff)
downloadorg.eclipse.cdt-189c17b74d0bff29257b734224d96d04058acd1c.tar.gz
org.eclipse.cdt-189c17b74d0bff29257b734224d96d04058acd1c.tar.xz
org.eclipse.cdt-189c17b74d0bff29257b734224d96d04058acd1c.zip
fixed up aix processlist extension
Diffstat (limited to 'core/org.eclipse.cdt.core.aix')
-rw-r--r--core/org.eclipse.cdt.core.aix/fragment.xml3
-rw-r--r--core/org.eclipse.cdt.core.aix/src/org/eclipse/cdt/internal/core/aix/ProcessList.java6
2 files changed, 5 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core.aix/fragment.xml b/core/org.eclipse.cdt.core.aix/fragment.xml
index 1c871220772..ece6df62cf4 100644
--- a/core/org.eclipse.cdt.core.aix/fragment.xml
+++ b/core/org.eclipse.cdt.core.aix/fragment.xml
@@ -16,7 +16,8 @@
<extension
point="org.eclipse.cdt.core.ProcessList">
<processList
- class="org.eclipse.cdt.internal.core.linux.ProcessList">
+ platform="aix"
+ class="org.eclipse.cdt.internal.core.aix.ProcessList">
</processList>
</extension>
</fragment>
diff --git a/core/org.eclipse.cdt.core.aix/src/org/eclipse/cdt/internal/core/aix/ProcessList.java b/core/org.eclipse.cdt.core.aix/src/org/eclipse/cdt/internal/core/aix/ProcessList.java
index 9f58364d9a9..a0ab4f80aa6 100644
--- a/core/org.eclipse.cdt.core.aix/src/org/eclipse/cdt/internal/core/aix/ProcessList.java
+++ b/core/org.eclipse.cdt.core.aix/src/org/eclipse/cdt/internal/core/aix/ProcessList.java
@@ -24,7 +24,7 @@ public class ProcessList implements IProcessList {
* @see IProcessList#getProcessList
*/
public IProcessInfo [] getProcessList() {
- File proc = new File("/proc");
+ File proc = new File("/proc"); //$NON-NLS-1$
File[] pidFiles = null;
// We are only interrested in the pid so filter the rest out.
@@ -48,7 +48,7 @@ public class ProcessList implements IProcessList {
if (pidFiles != null) {
processInfo = new ProcessInfo[pidFiles.length];
for (int i = 0; i < pidFiles.length; i++) {
- File cmdLine = new File(pidFiles[i], "cmdline");
+ File cmdLine = new File(pidFiles[i], "cmdline"); //$NON-NLS-1$
StringBuffer line = new StringBuffer();
try {
FileReader reader = new FileReader(cmdLine);
@@ -60,7 +60,7 @@ public class ProcessList implements IProcessList {
}
String name = line.toString();
if (name.length() == 0) {
- name = "Unknown";
+ name = "Unknown"; //$NON-NLS-1$
}
processInfo[i] = new ProcessInfo(pidFiles[i].getName(), name);
}

Back to the top