private ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(); } return imageRegistry; }
private static ImageRegistry getImageRegistry() { if(imageRegistry == null) { imageRegistry = new ImageRegistry(); } return imageRegistry; } }
private ImageRegistry getImageRegistry(Display display) { if (fgImageRegistry == null) fgImageRegistry= new ImageRegistry(display); return fgImageRegistry; }
/* package */ static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry= new ImageRegistry(); for (Iterator iter= fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key= (String) iter.next(); fgImageRegistry.put(key, (ImageDescriptor) fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap= null; } return fgImageRegistry; }
/* package */ static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry= new ImageRegistry(); for (Iterator<String> iter= fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key= iter.next(); fgImageRegistry.put(key, fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap= null; } return fgImageRegistry; }
/* package */ static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry= new ImageRegistry(); for (Iterator<String> iter= fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key= iter.next(); fgImageRegistry.put(key, fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap= null; } return fgImageRegistry; }
/* package */ static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry= new ImageRegistry(); for (Iterator iter= fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key= (String) iter.next(); fgImageRegistry.put(key, (ImageDescriptor) fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap= null; } return fgImageRegistry; }
private ImageRegistryStore() { imageRegistry = new ImageRegistry(); initializeDefaultImages(); } public static ImageRegistryStore getInstance() {
static ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(); for (Iterator iter = avoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key = (String) iter.next(); imageRegistry.put(key, (ImageDescriptor) avoidSWTErrorMap.get(key)); } avoidSWTErrorMap = null; } return imageRegistry; }
/* package */static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry = new ImageRegistry(); for (Iterator iter = fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key = (String) iter.next(); fgImageRegistry.put(key, (ImageDescriptor) fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap = null; } return fgImageRegistry; }
/** * Helper method to convert HashMap to ImageRegistry * * @return the image registry */ static ImageRegistry getImageRegistry() { if (fgImageRegistry == null) { fgImageRegistry = new ImageRegistry(); for (Iterator iter = fgAvoidSWTErrorMap.keySet().iterator(); iter.hasNext();) { String key = (String) iter.next(); fgImageRegistry.put(key, (ImageDescriptor) fgAvoidSWTErrorMap.get(key)); } fgAvoidSWTErrorMap = null; } return fgImageRegistry; }
/** * Initialize the image registry by declaring all of the required graphics. This involves creating JFace image * descriptors describing how to create/find the image should it be needed. The image is not actually allocated * until requested. * * Prefix conventions Wizard Banners WIZBAN_ Preference Banners PREF_BAN_ Property Page Banners PROPBAN_ Enable * toolbar ETOOL_ Disable toolbar DTOOL_ Local enabled toolbar ELCL_ Local Disable toolbar DLCL_ Object large OBJL_ * Object small OBJS_ View VIEW_ Product images PROD_ Misc images MISC_ * * Where are the images? The images (typically gifs) are found in the same location as this plugin class. This may * mean the same package directory as the package holding this class. The images are declared using this.getClass() * to ensure they are looked up via this plugin class. * * @see ImageRegistry */ private static void initializeImageRegistry() { imageRegistry = new ImageRegistry(); descriptors = new HashMap(); declareImages(); }
private static ImageRegistry getImageRegistry(){ if( imageRegistry == null ){ imageRegistry = new ImageRegistry(); for( String s : images ){ imageRegistry.put( s, create(s) ); } } return imageRegistry; }
private static void initializeImageRegistry() { fgImageRegistry= new ImageRegistry(JDIDebugUIPlugin.getStandardDisplay()); declareImages(); }
/** * Initialize the image registry by declaring all of the required graphics. This involves creating JFace image descriptors describing how to * create/find the image should it be needed. The image is not actually allocated until requested. * * Prefix conventions Wizard Banners WIZBAN_ Preference Banners PREF_BAN_ Property Page Banners PROPBAN_ Color toolbar CTOOL_ Enable toolbar * ETOOL_ Disable toolbar DTOOL_ Local enabled toolbar ELCL_ Local Disable toolbar DLCL_ Object large OBJL_ Object small OBJS_ View VIEW_ Product * images PROD_ Misc images MISC_ * * Where are the images? The images (typically gifs) are found in the same location as this plugin class. This may mean the same package directory * as the package holding this class. The images are declared using this.getClass() to ensure they are looked up via this plugin class. * * @see org.eclipse.jface.resource.ImageRegistry */ public static ImageRegistry initializeImageRegistry() { imageRegistry = new ImageRegistry(AntUIPlugin.getStandardDisplay()); declareImages(); return imageRegistry; }
private ProfileImageRegistry() { mImageRegistry = new ImageRegistry(); mImageRegistry.put(IMG_OBJ_SERVER_DEFAULT, ImageDescriptor .createFromURL(ConnectivityUIPlugin.getDefault().getBundle() .getEntry(IMG_DESC_SERVER_DEFAULT))); } }
/** * Returns the image registry for JFace itself. * <p> * Note that the static convenience method <code>getImage</code> is also * provided on this class. * </p> * * @return the JFace image registry */ public static ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(getResources(Display.getCurrent())); initializeDefaultImages(); } return imageRegistry; }
/** * Returns the image registry for JFace itself. * <p> * Note that the static convenience method <code>getImage</code> is also * provided on this class. * </p> * * @return the JFace image registry */ public static ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(getResources(Display.getCurrent())); initializeDefaultImages(); } return imageRegistry; }
private static final void initialize() { PLUGIN_REGISTRY = new ImageRegistry(); manage(OBJ_DESC_SERVICE_LOADED, DESC_SERVICE_LOADED_OBJ); manage(OBJ_DESC_SERVICE_NOT_LOADED, DESC_SERVICE_NOT_LOADED_OBJ); manage(OBJ_DESC_LANGUAGE, DESC_LANGUAGE_OBJ); manage(OBJ_CORRECTION_CHANGE, DESC_CORRECTION_CHANGE); manage(OBJ_FIXABLE_ERROR, DESC_FIXABLE_ERROR); manage(OBJ_FIXABLE_WARNING, DESC_FIXABLE_WARNING); manage(OBJ_FIXABLE_INFO, DESC_FIXABLE_INFO); initializeImageMaps(); }
private static final void initialize() { PLUGIN_REGISTRY = new ImageRegistry(); manage(IMG_ATT_CLASS_OBJ, DESC_ATT_CLASS_OBJ); manage(IMG_ATT_FILE_OBJ, DESC_ATT_FILE_OBJ); manage(IMG_ATT_IMPL_OBJ, DESC_ATT_IMPL_OBJ); manage(IMG_ATT_REQ_OBJ, DESC_ATT_REQ_OBJ); manage(IMG_ATT_ID_OBJ, DESC_ATT_ID_OBJ); manage(IMG_ATT_STRING_OBJ, DESC_ATT_STRING_OBJ); manage(IMG_ATT_BOOLEAN_OBJ, DESC_ATT_BOOLEAN_OBJ); manage(IMG_ATTRIBUTE_OBJ, DESC_ATTRIBUTE_OBJ); manage(IMG_GENERIC_XML_OBJ, DESC_GENERIC_XML_OBJ); manage(OBJ_DESC_GENERATE_CLASS, DESC_GENERATE_CLASS); manage(OBJ_DESC_GENERATE_INTERFACE, DESC_GENERATE_INTERFACE); manage(OBJ_DESC_PACKAGE, DESC_PACKAGE_OBJ); manage(OBJ_DESC_BUNDLE, DESC_BUNDLE_OBJ); }