fRefreshAction.selectionChanged(selection); menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, fRefreshAction);
	public void menuAboutToShow(IMenuManager menu) {		JavaPlugin.createStandardGroups(menu);		IStructuredSelection selection= (IStructuredSelection) fViewer.getSelection();		boolean selectionHasElements= !selection.isEmpty();		Object element= selection.getFirstElement();		// updateActions(selection);		if (selection.size() == 1 && fViewer.isExpandable(element)) 			menu.appendToGroup(IContextMenuConstants.GROUP_GOTO, fZoomInAction);		addGotoMenu(menu);		fOpenCUAction.update();		if (fOpenCUAction.isEnabled())			menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, fOpenCUAction);					addOpenWithMenu(menu, selection);				addOpenToMenu(menu, selection);		addRefactoring(menu);				// if (fShowTypeHierarchyAction.canActionBeAdded())		//	menu.appendToGroup(IContextMenuConstants.GROUP_SHOW, fShowTypeHierarchyAction);					// if (selectionHasElements)		//	menu.appendToGroup(IContextMenuConstants.GROUP_SHOW, fShowNavigatorAction);				ContextMenuGroup.add(menu, fStandardGroups, fViewer);				if (fAddBookmarkAction.canOperateOnSelection())			menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, fAddBookmarkAction);							if (selectionHasElements) {			// update the action to use the right selection since the refresh			// action doesn't listen to selection changes.			fRefreshAction.selectionChanged(selection);			menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, fRefreshAction);			menu.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, fPropertyDialogAction);		}		}