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
/* (non-Javadoc)
	 * Method declared on IPreferencePageContainer.
	 */
	public void updateMessage() {
		String pageMessage = currentPage.getMessage();
		int pageMessageType = IMessageProvider.NONE;
		if (pageMessage != null && currentPage instanceof IMessageProvider)
			pageMessageType = ((IMessageProvider) currentPage).getMessageType();
		String pageErrorMessage = currentPage.getErrorMessage();
		
		if (pageMessage == null && pageErrorMessage == null)
			messageLabel.setFont(JFaceResources.getBannerFont());
		else
			messageLabel.setFont(JFaceResources.getDialogFont());
			
		if (pageMessage == null) {
			setMessage(currentPage.getTitle());
		} else {
			setMessage(pageMessage, pageMessageType);
		}
		setErrorMessage(pageErrorMessage);
	}
	/* (non-Javadoc)
	 * Method declared on IPreferencePageContainer.
	 */
	public void updateTitle() {
		updateMessage();
	}
}