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:
**********************************************************************/
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbenchWindow;
+import org.osgi.framework.Bundle;
/**
* External tools plug-in class
*/
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) {