Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 static {
   try {
     ICON_BASE_URL = new URL(OsgiPlugin.getDefault().getBundle().getEntry("/"), ICON_PATH_PREFIX);
   } catch (MalformedURLException e) {
   }
 }