Bug 74708 [Encoding] IDEEncodingPreferencePage does not disable OK when invalid encoding is entered
20040921-2000 If you enter an invalid encoding in the IDEEncodingsPreferencePage you will still be able to select OK STEPS 1) Open the Editors preference page 2) Type ffff 3) You are warned but OK is still enabled.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
createEditableButton(composite);
			createDerivedButton(composite);
		}
	}
	private String getContentTypeString(IFile file) {
		IContentDescription description = getContentDescription(file);
		if (description != null) {
			IContentType contentType = description.getContentType();
			if (contentType != null)
				return contentType.getName();
		}
		return null;
	}
	private IContentDescription getContentDescription(IFile file) {
		if (cachedContentDescription == null) {
			try {
				cachedContentDescription = file.getContentDescription();
			} catch (CoreException e) {
				
			}
		}
		return cachedContentDescription;
	}
	/**
	 * Return the value for the date String for the timestamp of the supplied
	 * resource.
	 * 
	 * @return String
	 * @param IResource -
	 *            the resource to query