Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
* Return whether or not given id matches the id of the coolitems that
     * the workbench creates.
     */
    public boolean isWorkbenchCoolItemId(String id) {
        if (IWorkbenchActionConstants.TOOLBAR_FILE.equalsIgnoreCase(id))
            return true;
        if (IWorkbenchActionConstants.TOOLBAR_NAVIGATE.equalsIgnoreCase(id))
            return true;
        return false;
    }
    /**
     * Fills the status line with the workbench contribution items.
     */
    public void populateStatusLine(IActionBarConfigurer configurer) {
        IStatusLineManager statusLine = configurer.getStatusLineManager();
        statusLine.add(statusLineItem);
    }
    /**
     * Creates actions (and contribution items) for the menu bar, toolbar and status line.
     */
    private void makeActions(IWorkbenchConfigurer workbenchConfigurer,
            IActionBarConfigurer actionBarConfigurer) {
        
         
        setCurrentActionBarConfigurer(actionBarConfigurer);
        
        statusLineItem = new StatusLineContributionItem("ModeContributionItem"); 
        newWizardAction = ActionFactory.NEW.create(getWindow());
        registerGlobalAction(newWizardAction);
        newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN