Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-05-18 11:54:07 -0400
committerDavid Inglis2004-05-18 11:54:07 -0400
commit8fea90aff68f27d366aa6005987597440ff3fe6e (patch)
tree15f06c8e2432bd6587df6187ebc3b38546c0d6bf /core/org.eclipse.cdt.core.win32/src
parent0a0eb69d98966030cfb2ea289a5f0e16b4edb520 (diff)
downloadorg.eclipse.cdt-8fea90aff68f27d366aa6005987597440ff3fe6e.tar.gz
org.eclipse.cdt-8fea90aff68f27d366aa6005987597440ff3fe6e.tar.xz
org.eclipse.cdt-8fea90aff68f27d366aa6005987597440ff3fe6e.zip
removed deprecated dependancy
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/src')
-rw-r--r--core/org.eclipse.cdt.core.win32/src/org/eclipse/cdt/internal/core/win32/ProcessList.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core.win32/src/org/eclipse/cdt/internal/core/win32/ProcessList.java b/core/org.eclipse.cdt.core.win32/src/org/eclipse/cdt/internal/core/win32/ProcessList.java
index a3698f7e3d..5bd890476d 100644
--- a/core/org.eclipse.cdt.core.win32/src/org/eclipse/cdt/internal/core/win32/ProcessList.java
+++ b/core/org.eclipse.cdt.core.win32/src/org/eclipse/cdt/internal/core/win32/ProcessList.java
@@ -12,9 +12,9 @@ import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.IProcessInfo;
import org.eclipse.cdt.core.IProcessList;
import org.eclipse.cdt.utils.spawner.ProcessFactory;
-import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
/*
* Currently this will only work for Windows XP since tasklist
@@ -31,9 +31,10 @@ public class ProcessList implements IProcessList {
Process p = null;
String command = null;
InputStream in = null;
- IPluginDescriptor desc = CCorePlugin.getDefault().getDescriptor();
+ Bundle bundle = Platform.getBundle(CCorePlugin.PLUGIN_ID);
+
try {
- URL url = desc.find(new Path("$os$/listtasks.exe")); //$NON-NLS-1$
+ URL url = Platform.find(bundle, new Path("$os$/listtasks.exe")); //$NON-NLS-1$
url = Platform.resolve(url);
String path = url.getFile();
File file = new File(path);

Back to the top