Bug 53122 [Actions] Rebuild Project does not auto-save files
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
*/
    private void addAllProjects(IProject project, HashSet projects) {
        if (project == null || !project.isAccessible()
                || projects.contains(project))
            return;
        projects.add(project);
        try {
            IProject[] preReqs = project.getReferencedProjects();
            for (int i = 0; i < preReqs.length; i++)
                addAllProjects(preReqs[i], projects);
        } catch (CoreException e) {
            
        }
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    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() {