Bug 335960 [IDE] Update BuildAction to use new Workspace Build Configurations API
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
* This override allows the user to save the contents of selected
     * open editors so that the updated contents will be used for building.
     */
    public void run() {
	    List projects = getProjectsToBuild();
	    if (projects == null || projects.isEmpty()) {
			return;
		}
	    
        BuildUtilities.saveEditors(projects);
        runInBackground(null, ResourcesPlugin.FAMILY_MANUAL_BUILD);
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    protected boolean shouldPerformResourcePruning() {
        return true;
    }
    /**
     * The <code>BuildAction</code> implementation of this
     * <code>SelectionListenerAction</code> method ensures that this action is
     * enabled only if all of the selected resources have buildable projects.
     */
    protected boolean updateSelection(IStructuredSelection s) {
        projectsToBuild = null;
        IProject[] projects = (IProject[]) getProjectsToBuild().toArray(new IProject[0]);
        return BuildUtilities.isEnabled(projects, IncrementalProjectBuilder.INCREMENTAL_BUILD);
    }
}