improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / externaltools / internal / model / ExternalToolsPlugin.java
index a2bc1c0..40d31b9 100644 (file)
@@ -5,7 +5,7 @@ Copyright (c) 2002 IBM Corp. and others. All rights reserved.
 This file is made available under the terms of the Common Public License v1.0
 which accompanies this distribution, and is available at
 http://www.eclipse.org/legal/cpl-v10.html
+�
 Contributors:
 **********************************************************************/
 
@@ -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) {