Bug 76507 [Encoding] properties dialog show BOM when there is no BOM
n20041017 The properties dialog for a file will say: Byte Order Mark is ... whenever the encoding for a file is determined from its contents (regardless a BOM was found or not). Test case: check with any *.properties files - it will say the file has a ISO 8859-1 BOM, which cannot true.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java
encodings.add(enc);
		Collections.sort(encodings);
		return encodings;
	}
	/**
	 * Get the current value of the encoding preference. If the value is not set
	 * return <code>null</code>.
	 * 
	 * @return String
	 */
	public static String getResourceEncoding() {
		String preference = ResourcesPlugin.getPlugin().getPluginPreferences().getString(
				ResourcesPlugin.PREF_ENCODING);
		if (preference == null || preference.length() == 0)
			return null;
		return preference;
	}
	/**
	 * Set the resource encoding to be value. Add the encoding to the list of
	 * encodings stored by the workbench.
	 * 
	 * @param value
	 *            String or <code>null</code> if the preference is to be reset
	 *            to the default.
	 * @deprecated Use IWorkspaceRoot#setDefaultCharset and 
	 * add the encoding using #addEncoding.
	 * This API will be deleted before 3.1 M3.
	 */
	public static void setResourceEncoding(String value) {
		if (value != null)