Bug 286542 Unnecessary line of code in ResourceEncodingFieldEditor
Around line 268 String defaultCharset = getCharsetFromDescription(); defaultCharset = getCharsetFromDescription();
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
*/
	protected String findDefaultEncoding() {
		if (resource instanceof IWorkspaceRoot) {
			return super.findDefaultEncoding();
		}
		String defaultCharset = getCharsetFromDescription();
		defaultCharset = getCharsetFromDescription();
		if (defaultCharset != null && defaultCharset.length() > 0) {
			return defaultCharset;
		}
		try {
			
			defaultCharset = resource.getParent().getDefaultCharset(true);
		} catch (CoreException exception) {
			
		}
		if (defaultCharset != null && defaultCharset.length() > 0) {
			return defaultCharset;
		}
		return super.findDefaultEncoding();
	}
	/**
	 * Returns the charset from the content description if there is one.
	 * 
	 * @return the charset from the content description, or <code>null</code>
	 */
	private String getCharsetFromDescription() {
		IContentDescription description = getContentDescription();
		if (description != null) {
			return description.getCharset();