Bug 45144 [PropertiesView] Properties View label provider does not clear the image
Properties View does not clear the image when the LabelProvider.getImage() retrns null. Attached exmaple: I have added onto the org.eclipse.ui.examples.propertysheet example to provide a ColorLabelProvider that returns null image for black and an image for all other colors. Select "richard" and note there are no image displayed. Now select an color besides black, and the color image appears as expected. Now select the color black and notice that the color image is still there.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
import org.eclipse.swt.widgets.Widget;
/**
 * The PropertySheetViewer displays the properties of objects.
 * The model for the viewer consists of a hierarchy of 
 * <code>IPropertySheetEntry</code>. 
 * <p>
 * This viewer also supports the optional catogorization of the first level
 * <code>IPropertySheetEntry</code>s by using instances of
 * <code>PropertySheetCategory</code>. 
 * 
 */
class PropertySheetViewer extends Viewer {
	
	private Object[] input;
	 
	private IPropertySheetEntry rootEntry;
	
	private PropertySheetCategory[] categories;
	
	private TableTree tableTree;
	private TableTreeEditor tableTreeEditor;
	private static String[] columnLabels = { PropertiesMessages.getString("PropertyViewer.property"), PropertiesMessages.getString("PropertyViewer.value")}; 
	private static String MISCELLANEOUS_CATEGORY_NAME = PropertiesMessages.getString("PropertyViewer.misc"); 
	
	private int columnToEdit = 1;
	private CellEditor cellEditor;
	private IPropertySheetEntryListener entryListener;
	private ICellEditorListener editorListener;
	
	private boolean isShowingCategories = true;