mBaseUrl = plugin.getBundle().getEntry("/"); // $NON-NLS-1$
default method. only need a filename. the 2 interface methods call this one.paramfilename the filename of the image to load. The filename is searched for under /icons.return try { URL newUrl = new URL(mBaseUrl, "/icons/" + filename); // $NON-NLS-1$ return ImageDescriptor.createFromURL(newUrl); } catch (MalformedURLException e) { // we'll just return null; } return null;
try { URL newUrl = new URL(mBaseUrl, "/icons/" + filename); // $NON-NLS-1$ return ImageDescriptor.createFromURL(newUrl); } catch (MalformedURLException e) { // we'll just return null; } return null;
return loadDescriptor(filename);
ImageDescriptor descriptor = loadDescriptor(filename); if (descriptor !=null) { return descriptor.createImage(); } return null;