Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
newWizardAction.setEnabled(value);
        importResourcesAction.setEnabled(value);
        exportResourcesAction.setEnabled(value);
    }
    /**
     * Builds the actions and contributes them to the given window.
     */
    public void makeAndPopulateActions(IWorkbenchConfigurer windowConfigurer,
            IActionBarConfigurer actionBarConfigurer) {
        makeActions(windowConfigurer, actionBarConfigurer);
        populateMenuBar(actionBarConfigurer);
        populateCoolBar(actionBarConfigurer);
        updateBuildActions(ResourcesPlugin.getWorkspace().isAutoBuilding());
        populateStatusLine(actionBarConfigurer);
        hookListeners();
    }
    /**
     * Fills the coolbar with the workbench actions.
     */
    public void populateCoolBar(IActionBarConfigurer configurer) {
        ICoolBarManager cbManager = configurer.getCoolBarManager();
        { 
            IMenuManager popUpMenu = new MenuManager();
            popUpMenu.add(new ActionContributionItem(lockToolBarAction));
            popUpMenu.add(new ActionContributionItem(editActionSetAction));
            cbManager.setContextMenuManager(popUpMenu);
        }
        cbManager.add(new GroupMarker(IIDEActionConstants.GROUP_FILE));
        {