Bug 121727 [Viewers] ContentViewer.getLabelProvider javadoc is wrong
Original javadoc: Returns the label provider used by this viewer. <p> The <code>ContentViewer</code> implementation of this method returns the label provider recorded in an internal state variable; if none has been set (with <code>setLabelProvider</code>) a <code>SimpleLabelProvider</code>... Corrected javadoc: Returns the label provider used by this viewer. <p> The <code>ContentViewer</code> implementation of this method returns the label provider recorded in an internal state variable; if none has been set (with <code>setLabelProvider</code>) a <code>LabelProvider</code>... Note the change from <code>SimpleLabelProvider</code> to <code>LabelProvider</code>.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ContentViewer.java
* Overriding this method is generally not required; 
     * however, if overriding in a subclass,
     * <code>super.setLabelProvider</code> must be invoked.
     * </p>
     *
     * @param labelProvider the label provider, or <code>null</code> if none
     */
    public void setLabelProvider(IBaseLabelProvider labelProvider) {
        IBaseLabelProvider oldProvider = this.labelProvider;
        
        
        
        if (labelProvider == oldProvider) {
            return;
        }
        if (oldProvider != null) {
            oldProvider.removeListener(this.labelProviderListener);
        }
        this.labelProvider = labelProvider;
        if (labelProvider != null) {
            labelProvider.addListener(this.labelProviderListener);
        }
        refresh();
        
        if (oldProvider != null) {
            oldProvider.dispose();
        }
    }
}