Bug 80429 [Preferences] [Dialogs] FieldEditors should relax requirements to support DialogPages
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
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 IDEWorkbenchMessages.format("ResourceInfo.fileContainerEncodingFormat", 
							new String[] { getDefaultEnc() });
				return IDEWorkbenchMessages.format("ResourceInfo.fileContentEncodingFormat", 
						new String[] { getDefaultEnc() });
			} catch (CoreException exception) {
				
			}
		}
		return IDEWorkbenchMessages.format("ResourceInfo.containerEncodingFormat", 
				new String[] { getDefaultEnc() });
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor#createEncodingGroup(org.eclipse.swt.widgets.Composite, int)
	 */
	protected Group createEncodingGroup(Composite parent, int numColumns) {