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/JavaWorkbenchAdapter.java
protected static final Object[] NO_CHILDREN= new Object[0];
	public Object[] getChildren(Object o) {
		if (o instanceof IParent) {
			try {
				return ((IParent)o).getChildren();
			} catch(JavaModelException e) {
				JavaPlugin.logErrorMessage(getClass().getName() + ": Error getting children for: " + o); 
			}
		}
		return NO_CHILDREN;
	}
	public ImageDescriptor getImageDescriptor(Object object) {
		return null;
	}
	public String getLabel(Object o) {
		if (o instanceof IJavaElement)
			return ((IJavaElement)o).getElementName();
		return null;
	}
	public Object getParent(Object o) {
		if (o instanceof IJavaElement)
			return ((IJavaElement)o).getParent();
		return null;
	}
}