Bug 177787 Incorrect Javadoc in org.eclipse.jface.preference.PreferenceNode
The javadoc for the field classname in PreferenceNode states: /** * Name of class that implements <code>IPreferenceNode</code>, or * <code>null</code> if none. */ The class name stored in this variable actually implements IPreferencePage as used in createPage(): page = (IPreferencePage) createObject(classname);
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceNode.java
public Image getLabelImage() {
        if (image == null && imageDescriptor != null) {
            image = imageDescriptor.createImage();
        }
        return image;
    }
    /*
     * (non-Javadoc) Method declared on IPreferenceNode.
     */
    public String getLabelText() {
        if (page != null) {
			return page.getTitle();
		}
        return label;
    }
    /*
     * (non-Javadoc) Method declared on IPreferenceNode.
     */
    public IPreferencePage getPage() {
        return page;
    }
    /*
     * (non-Javadoc) Method declared on IPreferenceNode.
     */
    public IPreferenceNode[] getSubNodes() {
        if (subNodes == null) {
			return new IPreferenceNode[0];
		}
        return (IPreferenceNode[]) subNodes
                .toArray(new IPreferenceNode[subNodes.size()]);