Bug 73127 [Encoding] Expecting resource delta if workbench encoding changes
I20040901 We now get a resource delta if the explicit encoding of a file or (if not explicitly set or extracted from file) its parent container's encoding changes. If all parent containers use workbench encoding then the workbench encoding gets used but no resource delta is sent for that file if the workbench encoding changes. This forces clients which need to handle encoding changes to listen for resource deltas and UI property change events.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java
IDEWorkbenchPlugin.getDefault().getPreferenceStore().setToDefault(
				IDE_ENCODINGS_PREFERENCE);
	}
	/**
	 * Get the displayable string for the byte order marking from the supplied
	 * file description.
	 * 
	 * @param description
	 *            The description to query. May be <code>null</code>.
	 * @return String or <code>null</code> if the byte order mark cannot be
	 *         found or the description is <code>null</code>.
	 * @see IContentDescription#getProperty(org.eclipse.core.runtime.QualifiedName)
	 */
	public static String getByteOrderMarkLabel(IContentDescription description) {
		if (description == null)
			return null;
		byte[] bom = (byte[]) description
				.getProperty(IContentDescription.BYTE_ORDER_MARK);
		if (bom == null)
			return (String) description
					.getProperty(IContentDescription.CHARSET);
		if (bom == IContentDescription.BOM_UTF_8)
			return IDEEncoding.BOM_UTF_8;
		if (bom == IContentDescription.BOM_UTF_16BE)
			return IDEEncoding.BOM_UTF_16BE;
		if (bom == IContentDescription.BOM_UTF_16LE)
			return IDEEncoding.BOM_UTF_16LE;
		return null;
	}
}