Improved calculation of function/methods sourceEnd for code folding
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / src / net / sourceforge / phpdt / debug / ui / PHPDebugUiImages.java
index e447ff7..77a48a9 100644 (file)
@@ -3,12 +3,14 @@ package net.sourceforge.phpdt.debug.ui;
 import java.net.MalformedURLException;
 import java.net.URL;
 
-import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiPlugin;
+// import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiPlugin;
 
+//import org.eclipse.jdt.internal.ui.JavaPlugin;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.resource.ImageRegistry;
 import org.eclipse.swt.graphics.Image;
+import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiPlugin;
 
 public class PHPDebugUiImages {
 
@@ -16,6 +18,11 @@ public class PHPDebugUiImages {
        protected static final int NAME_PREFIX_LENGTH = NAME_PREFIX.length();
        protected static URL iconBaseURL;
 
+       
+       static {
+               iconBaseURL= PHPDebugUiPlugin.getDefault().getBundle().getEntry("/icons/"); //$NON-NLS-1$
+       }
+/*     
        static {
                String pathSuffix = "icons/";
                try {
@@ -24,7 +31,7 @@ public class PHPDebugUiImages {
                        PHPDebugUiPlugin.log(e);
                }
        }
-
+*/
        protected static final ImageRegistry IMAGE_REGISTRY = new ImageRegistry();
 
        protected static final String CTOOL_PREFIX = "ctool16";