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
public void setLabelProvider(IBaseLabelProvider labelProvider) {
        Assert.isTrue(labelProvider instanceof ILabelProvider);
        super.setLabelProvider(labelProvider);
    }
    /* (non-Javadoc)
     * Method declared on StructuredViewer.
     */
    protected void setSelectionToWidget(List in, boolean reveal) {
        if (in == null || in.size() == 0) { 
            listDeselectAll();
        } else {
            int n = in.size();
            int[] ixs = new int[n];
            int count = 0;
            for (int i = 0; i < n; ++i) {
                Object el = in.get(i);
                int ix = getElementIndex(el);
                if (ix >= 0) {
					ixs[count++] = ix;
				}
            }
            if (count < n) {
                System.arraycopy(ixs, 0, ixs = new int[count], 0, count);
            }
            listSetSelection(ixs);
            if (reveal) {
                listShowSelection();
            }
        }
    }