Bug 32038 Use shared images for properties, tasks, bookmarks views
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
}
	
	/**
	 * Returns the image with the given key, or <code>null</code> if not found.
	 */
	static Image getImage(String key) {
		Image image = (Image) imageRegistry.get(key);
		if (image == null) {
			ImageDescriptor desc = getImageDescriptor(key);
			if (desc != null) {
				image = desc.createImage(false);
				if (image == null) {
					System.err.println("TaskList: Error creating image for " + key);
				}
				imageRegistry.put(key, image);
			}
		}
		return image;
	}
	/**
	 * Returns the image that should be used to visually represent
	 * the marker, based on its type and priority.
	 */
	static public Image getImage(IMarker marker) {
		if (isMarkerType(marker, IMarker.PROBLEM)) {
			switch (getSeverity(marker)) {
				case IMarker.SEVERITY_ERROR:
					return getImage("error");
				case IMarker.SEVERITY_WARNING:
					return getImage("warn");