Bug 85587 [IDE] Save before clean all
The test plan for Platform UI states that a build should prompt to save unsaved resources. However, when we "clean all", no such prompt appears. Should it?
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java
IncrementalProjectBuilder.CLEAN_BUILD, monitor);
	    else {
	        try {
	            monitor.beginTask(IDEWorkbenchMessages.CleanDialog_taskName, selection.length);
	            for (int i = 0; i < selection.length; i++)
	                ((IProject) selection[i]).build(
	                        IncrementalProjectBuilder.CLEAN_BUILD,
	                        new SubProgressMonitor(monitor, 1));
	        } finally {
	            monitor.done();
	        }
	    }
	}
    /**
     * Updates the enablement of the dialog's ok button based
     * on the current choices in the dialog.
     */
    protected void updateEnablement() {
    	projectNames.getTable().setEnabled(selectedButton.getSelection());
        boolean enabled = allButton.getSelection() || selection.length > 0;
        getButton(OK).setEnabled(enabled);
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#close()
     */
    public boolean close() {
        persistDialogSettings(getShell(), DIALOG_SETTINGS_SECTION);
        return super.close();
    }