IEditorRegistry registry= PlatformUI.getWorkbench().getEditorRegistry(); ImageDescriptor desc= registry.getImageDescriptor(element.getName());
IFileEditorMapping[] mappings= fEditorRegistry.getFileEditorMappings(); int i= 0; while (i < mappings.length) { if (mappings[i].getLabel().equals(name)) break; i++; } String key= name; if (i == mappings.length) {  IPath path= element.getFullPath(); if (path == null) return getDefaultImage(); key= path.getFileExtension(); if (key == null) return getDefaultImage(); image= (Image)fJarImageMap.get(key); if (image != null) return image; }   ImageDescriptor desc= fEditorRegistry.getImageDescriptor(name);
	private Image getImageForJarEntry(IStorage element) {		if (fJarImageMap == null)			return null;				String extension= element.getFullPath().getFileExtension();		Image image= (Image)fJarImageMap.get(extension);		if (image != null) 			return image;		IEditorRegistry registry= PlatformUI.getWorkbench().getEditorRegistry();		ImageDescriptor desc= registry.getImageDescriptor(element.getName());		image= desc.createImage();		fJarImageMap.put(extension, image);		return image;	}