Bug 80793 [Viewers] null image returned from ILabelProvider.getImage should remove any image
I20041208 (-gtk) I have an ILabelProvider which in some cases returns an image in its getImage method, in some cases it does not. If I have once set an image, and then want to remove it, I return null; however, ViewerLabel.hasNewImage treats null as "no change". IMO, if a null image is returned, the viewer should remove the image from the label, alternatively, you could provide a "NullImage" and doc its usage. Currently, there is no way I can remove an image I once set without creating an empty image myself.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerLabel.java
}
	/**
	 * Return whether or not the background color has been set.
	 * 
	 * @return boolean. <code>true</code> if the value has been set.
	 */
	public boolean hasNewBackground() {
		return background != null;
	}
	
	/**
	 * Return whether or not the foreground color has been set.
	 * 
	 * @return boolean. <code>true</code> if the value has been set.
	 * 
	 * @since 3.1
	 */
	public boolean hasNewForeground() {
		return foreground != null;
	}
	
	/**
	 * Return whether or not the font has been set.
	 * 
	 * @return boolean. <code>true</code> if the value has been set.
	 * 
	 * @since 3.1
	 */
	public boolean hasNewFont() {
		return font != null;