Bug 53582 Rebuild Project are not run in the background?
The "Build All" and "Rebuild All" actions are run in the background, but the "Build Project" and "Rebuild Project" actions aren't. This is not consistent and I was surprised to get a modal dialog when performing a "Rebuild Project".
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
return orderedProjects;
}
/* (non-Javadoc)
 * Method declared on IAction; overrides method on WorkspaceAction.
 * 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() {
	
	saveAllResources();
	super.run();
}
/**
 * Causes all editors to save any modified resources depending on the user's
 * preference.
 */
void saveAllResources() {
	List projects = getSelectedResources();
	if (projects == null || projects.isEmpty())
		return;
		
	if (!isSaveAllSet())
		return;
		
	IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
	for (int i = 0; i < windows.length; i++) {
		IWorkbenchPage [] pages = windows[i].getPages();
		for (int j = 0; j < pages.length; j++) {
			IWorkbenchPage page = pages[j];
			IEditorPart[] editors = page.getDirtyEditors();