Bug 177489 [Viewers] Document usability of IColorProvider, IFontProvider not usable for ListViewers
This week I had this 2 times. Users complaint that IColorProvider and IFontProvider are not working for their ListViewer. I'd like to mention this in the JavaDoc. Question is where the best place for this would be: - in the interfaces itself - in AbstractListViewer#setLabelProvider() or in both places?
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractListViewer.java
add(element);
    		return;
    	}
    	
    	insertItem((ILabelProvider) getLabelProvider(), element, position);
    }
    
    
    /**
     * Return the text for the element from the labelProvider.
     * If it is null then return the empty String.
     * @param labelProvider ILabelProvider
     * @param element
     * @return String. Return the emptyString if the labelProvider
     * returns null for the text.
     * 
     * @since 3.1
     */
    private String getLabelProviderText(ILabelProvider labelProvider, Object element){
    	String text = labelProvider.getText(element);
        if(text == null) {
			return "";
		}
        return text;
    }
    /**
     * Adds the given element to this list viewer.
     * If this viewer does not have a sorter, the element is added at the end;
     * otherwise the element is inserted at the appropriate position.
     * <p>