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
* 
     * @param labelText the label text of the field editor
     * @param parent the parent of the field editor's control
	 * @param charsetResource must be an <code>IContainer</code> or an <code>IFile</code>.
     * 
	 * @see org.eclipse.core.resources.IContainer#getDefaultCharset()
	 * @see org.eclipse.core.resources.IFile#getCharset()
	 */
	public ResourceEncodingFieldEditor(String labelText, Composite parent, IResource charsetResource) {
		super();
        Assert.isTrue(charsetResource instanceof IContainer || charsetResource instanceof IFile);
		setLabelText(labelText);
		this.resource = charsetResource;
		createControl(parent);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.internal.ide.dialogs.AbstractEncodingFieldEditor#getStoredValue()
	 */
	protected String getStoredValue() {
		try {
			if (resource instanceof IContainer)
				return ((IContainer) resource).getDefaultCharset();
			return ((IFile) resource).getCharset();
		} catch (CoreException e) {
			IDEWorkbenchPlugin.log(IDEWorkbenchMessages.ResourceEncodingFieldEditor_ErrorLoadingMessage, e.getStatus());
			return WorkbenchEncoding.getWorkbenchDefaultEncoding();
		}
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.preference.FieldEditor#doStore()