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
if (data instanceof IPropertySheetEntry)
			 ((IPropertySheetEntry) data).removePropertySheetEntryListener(entryListener);
		item.setData(null);
		item.dispose();
	}
	/**
	 * Reset the selected properties to their default values.
	 */
	public void resetProperties() {
		
		IStructuredSelection selection = (IStructuredSelection) getSelection();
		
		Iterator enum = selection.iterator();
		while (enum.hasNext())
			 ((IPropertySheetEntry) enum.next()).resetPropertyValue();
	}
	/**
	 * Sets the error message to be displayed in the status line.
	 *
	 * @param errorMessage the message to be displayed, or <code>null</code>
	 */
	private void setErrorMessage(String errorMessage) {
		
		if (statusLineManager != null)
			statusLineManager.setErrorMessage(errorMessage);
	}
	/**
	 * The <code>PropertySheetViewer</code> implementation of this
	 * method declared on <code>Viewer</code> method sets the objects 
	 * for which the viewer is currently showing properties.