/** * Returns an image for the given display as specified by the given image * descriptor. * * @param display the display * @param descriptor the image descriptor * @return an image for the display as specified by the descriptor * @deprecated As of 3.0, visual presentation is no longer supported, * annotation with a visible presentation should implement * {@link org.eclipse.jface.text.source.IAnnotationPresentation} */ protected static Image getImage(Display display, ImageDescriptor descriptor) { Map map= getImageRegistry(display); Image image= (Image) map.get(descriptor); if (image == null) { image= descriptor.createImage(); map.put(descriptor, image); } return image; }
/** * Returns an image for the given display as specified by the given image * descriptor. * * @param display the display * @param descriptor the image descriptor * @return an image for the display as specified by the descriptor * @deprecated As of 3.0, visual presentation is no longer supported, * annotation with a visible presentation should implement * {@link org.eclipse.jface.text.source.IAnnotationPresentation} */ @Deprecated protected static Image getImage(Display display, ImageDescriptor descriptor) { Map<ImageDescriptor, Image> map= getImageRegistry(display); Image image= map.get(descriptor); if (image == null) { image= descriptor.createImage(); map.put(descriptor, image); } return image; }