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/JavaElementImageDescriptor.java
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.eclipse.jdt.internal.ui.viewsupport;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.Point;
import org.eclipse.jface.resource.CompositeImageDescriptor;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.util.Assert;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
/**
 * A JavaImageDescriptor consists of a main icon and several adornments. The adornments
 * are computed according to Java element's modifiers (e.g. visibility, static, final, ...). 
 */
public class JavaElementImageDescriptor extends CompositeImageDescriptor {
	
	
	public final static int ABSTRACT= 		0x001;
	
	public final static int FINAL=			0x002;
	
	public final static int SYNCHRONIZED=	0x004;
	
	public final static int STATIC=			0x008;
	
	public final static int RUNNABLE= 		0x010;
	
	public final static int WARNING=		0x020;