Bug 65061 [encoding] duplicated message when error setting encoding happens
3.0 RC1 When a CoreException happens on setting the charset for a given resource, the same message is shown twice. The double message is due to the fact that the CoreException message is always equal to the status message. There is value in showing both of them. An option would be to show the message in the internal exception that caused the CoreException (CoreException.getStatus().getException()). To reproduce: 1 - disabled auto-refresh 2 - set the encoding of a file (file.txt) in a project to be something I wanted (causing a preferences file to be created in the .settings dir) 3 - opened the project preferences file (.settings/org.eclipse.core.resources.prefs) externally (using a system editor - Notepad) and changed the corresponding entry to be something else, and saved, causing the preferenecs file to be out-of-sync 4 - tried to set the encoding for file.txt to be something else. When pressing ok, an "Internal error" dialog will show up saying: "Could not save encoding settings", reason: "Could not save encoding settings".
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
* @param resource
	 *            resource to test
	 * @return boolean <code>true</code> the given resource is a linked
	 *         resource bound to a path variable. <code>false</code> the given
	 *         resource is either not a linked resource or it is not using a
	 *         path variable.
	 */
	private boolean isPathVariable(IResource resource) {
		if (!resource.isLinked())
			return false;
		IPath resolvedLocation = resource.getLocation();
		if (resolvedLocation == null) {
			
			return true;
		}
		IPath rawLocation = resource.getRawLocation();
		if (resolvedLocation.equals(rawLocation))
			return false;
		return true;
	}
	/**
	 * Reset the editableBox to the false.
	 */
	protected void performDefaults() {
		
		if (this.editableBox != null)
			this.editableBox.setSelection(false);
		
		if (this.derivedBox != null)
			this.derivedBox.setSelection(false);