Bug 77800 [Encoding] Wrong information shown in encoding properties dialog
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
if (hasSameEncoding(encoding))
			return;
		String descriptionCharset = getCharsetFromDescription();
		if (descriptionCharset != null && !(descriptionCharset.equals(encoding))) {
			MessageDialog dialog = new MessageDialog(
					getPreferencePage().getShell(),
					IDEWorkbenchMessages
							.getString("ResourceEncodingFieldEditor.EncodingConflictTitle"), 
					null,
					IDEWorkbenchMessages
							.format(
									"ResourceEncodingFieldEditor.EncodingConflictMessage", new String[] { encoding, descriptionCharset }), 
					MessageDialog.WARNING, new String[] { IDialogConstants.YES_LABEL,
							IDialogConstants.NO_LABEL }, 0); 
			if (dialog.open() > 0)
				return;
		}
		if (encoding.equals(getDefaultEnc()))
			encoding = null;
		else
			IDEEncoding.addIDEEncoding(encoding);
		final String finalEncoding = encoding;
		Job charsetJob = new Job(IDEWorkbenchMessages.getString("IDEEncoding.EncodingJob")) {
			/* (non-Javadoc)
			 * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
			 */
			protected IStatus run(IProgressMonitor monitor) {
				try {
					if (resource instanceof IContainer)
						((IContainer) resource).setDefaultCharset(finalEncoding, monitor);