/** * Returns the {@link Image} identified by the given key, or <code>null</code> if it does not * exist. */ public static Image getImage(String key) { return OsgiPlugin.getDefault().getImageRegistry().get(key); }
static { try { ICON_BASE_URL = new URL(OsgiPlugin.getDefault().getBundle().getEntry("/"), ICON_PATH_PREFIX); } catch (MalformedURLException e) { } }