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 (string != null) {
				TableColumn column;
				if (i < columns.length)
					column = columns[i];
				else
					column = new TableColumn(table, 0);
				column.setText(string);
			}
		}
		
		ColumnLayoutData c1Layout = new ColumnWeightData(40, false);
		
		ColumnLayoutData c2Layout = new ColumnWeightData(60, true);
		
		TableLayout layout = new TableLayout();
		layout.addColumnData(c1Layout);
		layout.addColumnData(c2Layout);
		table.setLayout(layout);
	}
	/**
	 * Asks the entry currently being edited to apply its
	 * current cell editor value.
	 */
	private void applyEditorValue() {
		TableTreeItem treeItem = tableTreeEditor.getItem();
		
		if (treeItem == null || treeItem.isDisposed())
			return;
		IPropertySheetEntry entry = (IPropertySheetEntry) treeItem.getData();
		entry.applyEditorValue();