Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-03-25 14:41:11 -0500
committerDavid Inglis2004-03-25 14:41:11 -0500
commitdf02f5f81ad82f8912f5be4251e3c994fdb68561 (patch)
treec7f49fd50a9e7f505fa4e15e4c42ae2c2e4b58a3 /core/org.eclipse.cdt.core.qnx
parentb173623edb4ba3885f893558fb18377ad78e88be (diff)
downloadorg.eclipse.cdt-df02f5f81ad82f8912f5be4251e3c994fdb68561.tar.gz
org.eclipse.cdt-df02f5f81ad82f8912f5be4251e3c994fdb68561.tar.xz
org.eclipse.cdt-df02f5f81ad82f8912f5be4251e3c994fdb68561.zip
added platform to extension
Diffstat (limited to 'core/org.eclipse.cdt.core.qnx')
-rw-r--r--core/org.eclipse.cdt.core.qnx/ChangeLog6
-rw-r--r--core/org.eclipse.cdt.core.qnx/fragment.xml1
-rw-r--r--core/org.eclipse.cdt.core.qnx/src/org/eclipse/cdt/internal/core/qnx/ProcessList.java8
3 files changed, 11 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core.qnx/ChangeLog b/core/org.eclipse.cdt.core.qnx/ChangeLog
index bc1026602d..8d500da2b6 100644
--- a/core/org.eclipse.cdt.core.qnx/ChangeLog
+++ b/core/org.eclipse.cdt.core.qnx/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-25 David Inglis
+
+ Added platform attribute to processlist extension
+
+ * plugin.xml
+
2002-11-12 Alain Magloire
Fix Pr 26005
diff --git a/core/org.eclipse.cdt.core.qnx/fragment.xml b/core/org.eclipse.cdt.core.qnx/fragment.xml
index ed85a434ce..a16d8250cb 100644
--- a/core/org.eclipse.cdt.core.qnx/fragment.xml
+++ b/core/org.eclipse.cdt.core.qnx/fragment.xml
@@ -16,6 +16,7 @@
<extension
point="org.eclipse.cdt.core.ProcessList">
<processList
+ platform="qnx"
class="org.eclipse.cdt.internal.core.qnx.ProcessList">
</processList>
</extension>
diff --git a/core/org.eclipse.cdt.core.qnx/src/org/eclipse/cdt/internal/core/qnx/ProcessList.java b/core/org.eclipse.cdt.core.qnx/src/org/eclipse/cdt/internal/core/qnx/ProcessList.java
index 87eae3fd31..2e759c6b58 100644
--- a/core/org.eclipse.cdt.core.qnx/src/org/eclipse/cdt/internal/core/qnx/ProcessList.java
+++ b/core/org.eclipse.cdt.core.qnx/src/org/eclipse/cdt/internal/core/qnx/ProcessList.java
@@ -31,7 +31,7 @@ public class ProcessList implements IProcessList {
public IProcessInfo [] getProcessList() {
Process pidin;
BufferedReader pidinOutput;
- String[] args = {"pidin", "-fan" };
+ String[] args = {"pidin", "-fan" }; //$NON-NLS-1$ //$NON-NLS-2$
try {
pidin = ProcessFactory.getFactory().exec(args);
@@ -82,7 +82,7 @@ public class ProcessList implements IProcessList {
* pid list.
*/
private IProcessInfo [] getProcessListPureJava() {
- 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.
@@ -106,7 +106,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], "exename");
+ File cmdLine = new File(pidFiles[i], "exename"); //$NON-NLS-1$
StringBuffer line = new StringBuffer();
try {
FileReader reader = new FileReader(cmdLine);
@@ -118,7 +118,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