mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
added platform to extension
This commit is contained in:
parent
b173623edb
commit
df02f5f81a
9 changed files with 32 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-03-25 David Inglis
|
||||
|
||||
Added platform attribute to processlist extension
|
||||
|
||||
* plugin.xml
|
||||
|
||||
2004-03-02 James Ciesielski
|
||||
|
||||
Marked strings as non-translatable.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<extension
|
||||
point="org.eclipse.cdt.core.ProcessList">
|
||||
<processList
|
||||
platform="linux"
|
||||
class="org.eclipse.cdt.internal.core.linux.ProcessList">
|
||||
</processList>
|
||||
</extension>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<extension
|
||||
point="org.eclipse.cdt.core.ProcessList">
|
||||
<processList
|
||||
platform="qnx"
|
||||
class="org.eclipse.cdt.internal.core.qnx.ProcessList">
|
||||
</processList>
|
||||
</extension>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2004-03-25 David Inglis
|
||||
|
||||
Added platform attribute to processlist extension
|
||||
|
||||
* plugin.xml
|
||||
|
||||
2004-03-02 James Ciesielski
|
||||
|
||||
Marked strings as non-translatable.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<extension
|
||||
point="org.eclipse.cdt.core.ProcessList">
|
||||
<processList
|
||||
platform="solaris"
|
||||
class="org.eclipse.cdt.internal.core.solaris.ProcessList">
|
||||
</processList>
|
||||
</extension>
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2004-03-25 David Inglis
|
||||
|
||||
Added platform attribute to processlist extension
|
||||
|
||||
* plugin.xml
|
||||
|
||||
2004-03-01 James Ciesielski
|
||||
|
||||
Marked string as non-externalized
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<extension
|
||||
point="org.eclipse.cdt.core.ProcessList">
|
||||
<processList
|
||||
platform="win32"
|
||||
class="org.eclipse.cdt.internal.core.win32.ProcessList">
|
||||
</processList>
|
||||
</extension>
|
||||
|
|
Loading…
Add table
Reference in a new issue