Bug 183599 Navigator tests failing in N20070423-0010
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/WorkingSetRootModeActionGroup.java
stateModel = aStateModel;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see ActionGroup#fillActionBars(IActionBars)
	 */
	public void fillActionBars(IActionBars actionBars) {
		synchronized (this) {
			if (!hasContributedToViewMenu) {
				contributeToViewMenu(actionBars.getMenuManager()); 
				hasContributedToViewMenu = true;
			}
		}
	}
	private void contributeToViewMenu(IMenuManager viewMenu) {
		IMenuManager topLevelSubMenu = new MenuManager(
				WorkbenchNavigatorMessages.WorkingSetRootModeActionGroup_Top_Level_Element_);
		addActions(topLevelSubMenu);
		viewMenu.insertBefore(IWorkbenchActionConstants.MB_ADDITIONS,
				topLevelSubMenu);
	}
	/**
	 * Adds the actions to the given menu manager.
	 */
	protected void addActions(IMenuManager viewMenu) {
		viewMenu.add(new Separator());
		items = new MenuItem[actions.length];
		for (int i = 0; i < actions.length; i++) {
			final int j = i;