Bug 160166 [CommonNavigator] Actions not synched with selection
There's a problem when making actions with the common navigator framework. Strangely, it is only reproduceable when the 'Java Elements' is not used in the content provider -- I've seen it happen when trying an example only with the resources provider. To reproduce it, go to the Project Explorer, uncheck the 'Java Elements', select any resource, then press up/down to select another resource and quickly press delete (or F2, or some other action). Here what happens is that the delete will work on the resource that was previously selected and not on the new selected resource (so, the action seems to be unsynchronized with the actual selection -- made me delete a whole source folder instead of a single file -- that's why I'm marking it as critical).
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorManager.java
* 
	 */
	protected void fillContextMenu(IMenuManager aMenuManager) {
		ISelection selection = commonNavigator.getCommonViewer().getSelection();
		actionService.setContext(new ActionContext(selection));
		actionService.fillContextMenu(aMenuManager);
	}
	/**
	 * <p>
	 * Initializes and registers the context menu.
	 * </p>
	 */
	protected void initContextMenu() {
		MenuManager menuMgr = new MenuManager(contentService
				.getViewerDescriptor().getPopupMenuId());
		menuMgr.setRemoveAllWhenShown(true);
		menuMgr.addMenuListener(new IMenuListener() {
			public void menuAboutToShow(IMenuManager manager) {
				fillContextMenu(manager);
			}
		});
		TreeViewer commonViewer = commonNavigator.getCommonViewer();
		Menu menu = menuMgr.createContextMenu(commonViewer.getTree());
		commonViewer.getTree().setMenu(menu);
		actionService.prepareMenuForPlatformContributions(menuMgr,
				commonViewer, false);
	}
	protected void initViewMenu() {
		IMenuManager viewMenu = commonNavigator.getViewSite().getActionBars()
				.getMenuManager();