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
/*******************************************************************************
 * Copyright (c) 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.ide;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Preferences;
import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.ui.WorkbenchEncoding;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
/**
 * IDEEncoding is a utility class for managing encoding information that
 * includes user preferences from the IDE and core resources.
 * 
 * @see org.eclipse.ui.WorkbenchEncoding
 * @see org.eclipse.core.resources.ResourcesPlugin
 */
public class IDEEncoding {