Bug 45446 [Outline] 'Hide Fields' option not saved b/w editors
I20031023 - new/clean workspace - checkout platform-ui projects and compile - Java Perspective - open a class (ProblemView) - in Outline view, click the buttons 'Hide Field' (so you don't see the fields) and 'Sort'(so methods appear in alphabetical order) - Outline view is updated - open another class (SelectionEnabler) - note that the 'Sort' button is depressed in the Outline view but the 'Hide Fields' button is not (so you see the fields) - click on 'Hide Fields' and the fields are hidden - open a 3rd Java class (PluginAction) - 'Sort' button is depressed but 'Hide Fields' is not - I wasn't dreaming the first time!
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MemberFilterActionGroup.java
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.jdt.ui.PreferenceConstants;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
import org.eclipse.jdt.internal.ui.actions.ActionMessages;
import org.eclipse.jdt.internal.ui.viewsupport.MemberFilter;
import org.eclipse.jdt.internal.ui.viewsupport.MemberFilterAction;
/**
 * Action Group that contributes filter buttons for a view parts showing 
 * methods and fields. Contributed filters are: hide fields, hide static
 * members hide non-public members and hide local types.
 * <p>
 * The action group installs a filter on a structured viewer. The filter is connected 
 * to the actions installed in the view part's toolbar menu and is updated when the 
 * state of the buttons changes.
 *  
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 * 
 * @since 2.0
 */
public class MemberFilterActionGroup extends ActionGroup {