Bug 47150 [Progress] ProgressMonitorJobsDialog used on shutdown
build I20031119-2030 On shutdown, a ProgressMonitorJobsDialog is used when saving the workspace. This is opened with fork=false and cancelable=false. fork=false means the UI is not processing events, so the Jobs button is unresponsive.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
int sev = markerDelta.getAttribute(IMarker.SEVERITY, -1);
				if (sev == IMarker.SEVERITY_ERROR || sev == IMarker.SEVERITY_WARNING) {
					return markerDelta.getMarker();
				}
			}
		}
		return null;
	}
	
	/**
	 * Temporarily disables auto build.
	 */
	private void disableAutoBuild() {
		IWorkspace workspace = ResourcesPlugin.getWorkspace();
		IWorkspaceDescription description = workspace.getDescription();
		
		
		autoBuild = description.isAutoBuilding();
		if (autoBuild) {
			description.setAutoBuilding(false);
			try {
				workspace.setDescription(description);
			} catch (CoreException exception) { 
				MessageDialog.openError(
					null, 
					IDEWorkbenchMessages.getString("Workspace.problemsTitle"),	
					IDEWorkbenchMessages.getString("Restoring_Problem"));		
			}
		}
	}