Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
protected List getActionResources() {
        return getProjectsToBuild();
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    String getOperationMessage() {
        return IDEWorkbenchMessages.getString("BuildAction.operationMessage"); 
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    String getProblemsMessage() {
        return IDEWorkbenchMessages.getString("BuildAction.problemMessage"); 
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    String getProblemsTitle() {
        return IDEWorkbenchMessages.getString("BuildAction.problemTitle"); 
    }
    /**
     * Returns the projects to build.
     * This contains the set of projects which have builders, across all selected resources.
     */
    List getProjectsToBuild() {
        if (projectsToBuild == null) {
            projectsToBuild = new ArrayList(3);
            for (Iterator i = getSelectedResources().iterator(); i.hasNext();) {
                IResource resource = (IResource) i.next();