mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
I18N
This commit is contained in:
parent
1d67a95684
commit
e9ce7d57a8
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-03-02 James Ciesielski
|
||||||
|
|
||||||
|
Marked strings as non-translatable.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/internal/core/linux/Processlist.java
|
||||||
|
|
||||||
2003-02-01 Alain Magloire
|
2003-02-01 Alain Magloire
|
||||||
|
|
||||||
* library/ptyio.c: Do not throw any exception.
|
* library/ptyio.c: Do not throw any exception.
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class ProcessList implements IProcessList {
|
||||||
* @see IProcessList#getProcessList
|
* @see IProcessList#getProcessList
|
||||||
*/
|
*/
|
||||||
public IProcessInfo [] getProcessList() {
|
public IProcessInfo [] getProcessList() {
|
||||||
File proc = new File("/proc");
|
File proc = new File("/proc"); //$NON-NLS-1$
|
||||||
File[] pidFiles = null;
|
File[] pidFiles = null;
|
||||||
|
|
||||||
// We are only interrested in the pid so filter the rest out.
|
// We are only interrested in the pid so filter the rest out.
|
||||||
|
@ -48,7 +48,7 @@ public class ProcessList implements IProcessList {
|
||||||
if (pidFiles != null) {
|
if (pidFiles != null) {
|
||||||
processInfo = new ProcessInfo[pidFiles.length];
|
processInfo = new ProcessInfo[pidFiles.length];
|
||||||
for (int i = 0; i < pidFiles.length; i++) {
|
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();
|
StringBuffer line = new StringBuffer();
|
||||||
try {
|
try {
|
||||||
FileReader reader = new FileReader(cmdLine);
|
FileReader reader = new FileReader(cmdLine);
|
||||||
|
@ -60,7 +60,7 @@ public class ProcessList implements IProcessList {
|
||||||
}
|
}
|
||||||
String name = line.toString();
|
String name = line.toString();
|
||||||
if (name.length() == 0) {
|
if (name.length() == 0) {
|
||||||
name = "Unknown";
|
name = "Unknown"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
processInfo[i] = new ProcessInfo(pidFiles[i].getName(), name);
|
processInfo[i] = new ProcessInfo(pidFiles[i].getName(), name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue