Bug 94915 [Preferences] Editors preference page shortly shows error status on first display
I20050509-2010: Steps to reproduce: - Restart workbench or make sure that last visited preference page is not the Editors preference page - Open the Editors preference page -> For a very short time, the preference displays an error status below the preference page caption
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
* @return the charset from the content description, or <code>null</code>
	 */
	private String getCharsetFromDescription() {
		IContentDescription description = getContentDescription();
		if (description != null)
			return description.getCharset();
		return null;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor#defaultButtonText()
	 */
	protected String defaultButtonText() {
		if (resource instanceof IWorkspaceRoot)
			return super.defaultButtonText();
		if (resource instanceof IFile) {
			try {
				IContentDescription description = ((IFile) resource).getContentDescription();
				
				if (description == null || description.getCharset() == null)
					return NLS.bind(IDEWorkbenchMessages.ResourceInfo_fileContainerEncodingFormat, getDefaultEnc());
				return NLS.bind(IDEWorkbenchMessages.ResourceInfo_fileContentEncodingFormat, getDefaultEnc());
			} catch (CoreException exception) {
				
			}
		}
		return NLS.bind(IDEWorkbenchMessages.ResourceInfo_containerEncodingFormat, getDefaultEnc());
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor#createEncodingGroup(org.eclipse.swt.widgets.Composite, int)
	 */