Пример #1
0
 public static Image getImage(AbstractUIPlugin plugin, String path) {
   ImageRegistry registry = plugin.getImageRegistry();
   Image image = registry.get(path);
   if (image == null) {
     ImageDescriptor id = getImageDescriptor(plugin.getBundle().getSymbolicName(), path);
     if (id == null) {
       return null;
     }
     registry.put(path, id);
     image = registry.get(path);
   }
   return image;
 }