/** * Get the ImageDescriptor for the given id. * * @param id the id * @return the descriptor */ public ImageDescriptor getImageDescriptor(String id) { return registry.getDescriptor(id); }
/** * Returns the image descriptor for the given key in this registry. * * @param key the image's key * @return the image descriptor for the given key */ public static ImageDescriptor getDescriptor(String key) { return getImageRegistry().getDescriptor(key); } }
/** * Returns the image descriptor for the given key in this registry. Might be called in a non-UI thread. * * @param key the image's key * @return the image descriptor for the given key */ public static ImageDescriptor getDescriptor(String key) { if (fgImageRegistry == null) { return (ImageDescriptor) fgAvoidSWTErrorMap.get(key); } return getImageRegistry().getDescriptor(key); }
/** * Returns the <code>ImageDescriptor</code> identified by the given key, * or <code>null</code> if it does not exist. */ public static ImageDescriptor getImageDescriptor(String key) { return getImageRegistry().getDescriptor(key); }
/** * Returns the image descriptor for the given key in this registry. Might be called in a non-UI thread. * * @param key the image's key * @return the image descriptor for the given key */ public static ImageDescriptor getDescriptor(String key) { if (fgImageRegistry == null) { return fgAvoidSWTErrorMap.get(key); } return getImageRegistry().getDescriptor(key); }
/** * Returns the image descriptor for the given key in this registry. Might be called in a non-UI thread. * * @param key the image's key * @return the image descriptor for the given key */ public static ImageDescriptor getDescriptor(String key) { if (fgImageRegistry == null) { return fgAvoidSWTErrorMap.get(key); } return getImageRegistry().getDescriptor(key); }
/** * Returns the <code>ImageDescriptor<code> identified by the given key, * or <code>null</code> if it does not exist. */ public static ImageDescriptor getImageDescriptor(String key) { return getImageRegistry().getDescriptor(key); }
/** * Returns the <code>ImageDescriptor<code> identified by the given key, * or <code>null</code> if it does not exist. */ public static ImageDescriptor getImageDescriptor(String key) { return getImageRegistry().getDescriptor(key); }
/** * Returns the <code>ImageDescriptor<code> identified by the given key, * or <code>null</code> if it does not exist. */ public static ImageDescriptor getImageDescriptor(String key) { return getImageRegistry().getDescriptor(key); }
/** * Returns the image descriptor for the given image ID. * Returns null if there is no such image. */ public ImageDescriptor getImageDescriptor(String id) { return getImageRegistry().getDescriptor(id); }
/** * Returns the image descriptor for the given key in this registry. * * @param key the image's key * @return the image descriptor for the given key */ public static ImageDescriptor getDescriptor(String key) { return getImageRegistry().getDescriptor(key); } }
@Override public void registerIconForFamily(ImageDescriptor icon, Object family) { String key = IMAGE_KEY + String.valueOf(imageKeyTable.size()); imageKeyTable.put(family, key); ImageRegistry registry = JFaceResources.getImageRegistry(); // Avoid registering twice. if (registry.getDescriptor(key) == null) { registry.put(key, icon); } }
/** * Returns an image descriptor from the registry with the given key or <code>null</code> if none. * * @param key image key * @return image descriptor or <code>null</code> */ public static ImageDescriptor getImageDescriptor(String key) { return getDefault().getImageRegistry().getDescriptor(key); }
/** * Returns an image descriptor from the registry with the given key or * <code>null</code> if none. * * @param key image key * @return image descriptor or <code>null</code> */ public static ImageDescriptor getImageDescriptor(String key) { return getDefault().getImageRegistry().getDescriptor(key); }
/** * Returns the image descriptor for the given image ID. Returns * <code>null</code> if there is no such image. * * @param id * the identifier for the image to retrieve * @return the image descriptor associated with the given ID */ public static ImageDescriptor getImageDescriptor(String id) { return ProvUIActivator.getDefault().getImageRegistry().getDescriptor(id); }
public static ImageDescriptor getDescriptor(String key) { key = mangleKey(key); ImageDescriptor descriptor = REGISTRY.getDescriptor(key); if (descriptor == null) { descriptor = createDescriptor(key); } return descriptor; }
public ImageDescriptor getImageDescriptor(Object object) { String id = getImageId(object); if (id == null) { return null; } ImageDescriptor desc = ProvUIImages.getImageDescriptor(id); if (desc == null) desc = JFaceResources.getImageRegistry().getDescriptor(id); return desc; }
public static Image getImage(URL url) { ImageRegistry registry = HelpUIPlugin.getDefault().getImageRegistry(); String name = url.toString(); ImageDescriptor desc = registry.getDescriptor(name); if (desc==null) { desc = ImageDescriptor.createFromURL(url); registry.put(name, desc); } return registry.get(name); } }
public static void registerImage(String key, IPath base, String imageName) { ImageRegistry registry = IntroPlugin.getDefault().getVolatileImageRegistry(); if (registry.getDescriptor(key) != null) // key has already been registered. do nothing. return; registry.put(key, createImageDescriptor(base, imageName)); } }
public static void registerImage(String key, Bundle bundle, String imageName) { ImageRegistry registry = IntroPlugin.getDefault().getVolatileImageRegistry(); if (registry.getDescriptor(key) != null) // key has already been registered. do nothing. return; registry.put(key, createImageDescriptor(bundle, imageName)); }