Bug 292549 [CommonNavigator] WorkingSetFilterActionGroup sometimes not updated on WS changes
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: 3.5 I am extending common navigator such that it creates few working sets on the start-up of the workbench. I hit an issue with the "Select Working Set" dialog, it does not "selects" the created working set. I debugged and found that WorkingSetFilterActionGroup.setWorkingSet() in org.eclipse.ui.internal.navigator.resources.actions.WorkingSetActionProvider is initialized to working set based on the value of currentWorkingSetName set in workbench.xml. Opening up the API in WorkingSetActionProvider to set working set in WorkingSetFilterActionGroup should make it work. Reproducible: Always
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/WorkingSetActionProvider.java
/*******************************************************************************
 * Copyright (c) 2006, 2009 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     anton.leherbauer@windriver.com - bug 212389 [CommonNavigator] working set issues: 
 *         missing project, window working set inconsistency
 *******************************************************************************/
package org.eclipse.ui.internal.navigator.resources.actions;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IAggregateWorkingSet;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IWorkbenchPreferenceConstants;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.IWorkingSetManager;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ResourceWorkingSetFilter;
import org.eclipse.ui.actions.WorkingSetFilterActionGroup;
import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMessages;