RC2 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / externaltools / internal / model / ExternalToolsPlugin.java
index a2bc1c0..b4f3b26 100644 (file)
@@ -28,6 +28,7 @@ import org.eclipse.jface.resource.ImageRegistry;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.RGB;
 import org.eclipse.ui.IWorkbenchWindow;
+import org.osgi.framework.Bundle;
 
 /**
  * External tools plug-in class
@@ -129,7 +130,8 @@ public final class ExternalToolsPlugin { // extends AbstractUIPlugin {
         */
        public ImageDescriptor getImageDescriptor(String path) {
                try {
-                       URL installURL = PHPeclipsePlugin.getDefault().getDescriptor().getInstallURL();
+                       Bundle bundle= PHPeclipsePlugin.getDefault().getBundle();
+                       URL installURL = bundle.getEntry("/"); //$NON-NLS-1$
                        URL url = new URL(installURL, path);
                        return ImageDescriptor.createFromURL(url);
                } catch (MalformedURLException e) {