Bug 41927 [Dialogs] Selecting in PreferenceDialog generates too many invalid entries
20030825 If you select an entry, close the dialog and then reopen it selecting anotehr entry will result in a "this page has invalid values" although you selected nothing.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
createTreeItemFor(tree, subnodes[i]);
		}
	}
	/**
	 * Creates a TreeItem structure that reflects to the page hierarchy.
	 */
	private void createTreeItemFor(Widget parent, IPreferenceNode node) {
		TreeItem item = null;
		if (parent instanceof Tree)
			item = new TreeItem((Tree) parent, SWT.DEFAULT);
		else
			item = new TreeItem((TreeItem) parent, SWT.DEFAULT);
		item.setData(node);
		item.setText(node.getLabelText());
		Image image = node.getLabelImage();
		if (image != null) {
			item.setImage(image);
		}
		IPreferenceNode[] subnodes = node.getSubNodes();
		for (int i = 0; i < subnodes.length; i++) {
			createTreeItemFor(item, subnodes[i]);
		}
	}
	/**
	 * Returns the preference mananger used by this preference dialog.
	 *
	 * @return the preference mananger
	 */
	public PreferenceManager getPreferenceManager() {
		return preferenceManager;