Bug 6299 JavaWorkbenchAdapter does not provide images
org.eclipse.jdt.internal.ui.JavaWorkbenchAdapter#getImageDescriptor returns null; not very nice when presenting in a viewer. Solution (just suggestion;): org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider#getImageDescriptor ... org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider imageProvider; ... return imageProvider.getImageDescriptor((IJavaElement)element, JavaElementImageProvider.SMALL_ICONS);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
int flags= member.getFlags();
					if (Flags.isPublic(flags))
						return JavaPluginImages.DESC_MISC_PUBLIC;
					if (Flags.isProtected(flags))
						return JavaPluginImages.DESC_MISC_PROTECTED;
					if (Flags.isPrivate(flags))
						return JavaPluginImages.DESC_MISC_PRIVATE;
					
					return JavaPluginImages.DESC_MISC_DEFAULT;
				}
				case IJavaElement.PACKAGE_DECLARATION:
					return JavaPluginImages.DESC_OBJS_PACKDECL;
				
				case IJavaElement.IMPORT_DECLARATION:
					return JavaPluginImages.DESC_OBJS_IMPDECL;
					
				case IJavaElement.IMPORT_CONTAINER:
					return JavaPluginImages.DESC_OBJS_IMPCONT;
				
				case IJavaElement.TYPE: {
					IType type= (IType) element;
					
					if (useLightIcons(renderFlags)) {
						if (type.isClass())
							return JavaPluginImages.DESC_OBJS_CLASSALT;
						else 
							return JavaPluginImages.DESC_OBJS_INTERFACEALT;
					}
					
					int flags= type.getFlags();