public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
public static Image getSharedImage(String path) {
ImageRegistry registry = getDefault().getImageRegistry();
ImageDescriptor image_descriptor = registry.getDescriptor(path);
if (image_descriptor == null) {
image_descriptor = getImageDescriptor(path);
registry.put(path, image_descriptor);
}
return registry.get(path);
}