/** * Declare an Image in the registry table. * @param key The key to use when registering the image * @param path The path where the image can be found. This path is relative to where * this plugin class is found (i.e. typically the packages directory) */ private final static void declareRegistryImage(String key, String path) { ImageDescriptor desc= ImageDescriptor.getMissingImageDescriptor(); try { desc= ImageDescriptor.createFromURL(makeIconFileURL(path)); } catch (MalformedURLException me) { ConsolePlugin.log(me); } imageRegistry.put(key, desc); }
/** * Declare an Image in the registry table. * @param key The key to use when registering the image * @param path The path where the image can be found. This path is relative to where * this plugin class is found (i.e. typically the packages directory) */ private final static void declareRegistryImage(String key, String path) { ImageDescriptor desc= ImageDescriptor.getMissingImageDescriptor(); try { desc= ImageDescriptor.createFromURL(makeIconFileURL(path)); } catch (MalformedURLException me) { ConsolePlugin.log(me); } imageRegistry.put(key, desc); }