Bug 71800 [IDE] Clean action should be background operation
build R3.0 When the user selects "Clean..." from the Project menu, it pops up a modal dialog which shows progress. After the "clean" part is done, then the build is done in the background. The "clean" action should also be done in the background. The inconvenience of having it in the foreground is magnified when you have many projects with lots of source files (so it does real work and takes many seconds...up to a minute)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java
monitor.done();
            }
        }
    }
    /**
     * Fills in the name of the project in the text area.
     */
    private void setProjectName() {
        if (selection.length == 0)
            projectName.setText(IDEWorkbenchMessages
                    .getString("CleanDialog.noSelection")); 
        else {
            StringBuffer names = new StringBuffer(((IProject) selection[0])
                    .getName());
            for (int i = 1; i < selection.length; i++) {
                names.append(',');
                names.append(((IProject) selection[i]).getName());
            }
            projectName.setText(names.toString());
        }
    }
    /**
     * Updates the enablement of the dialog's ok button based
     * on the current choices in the dialog.
     */
    protected void updateEnablement() {
        boolean enabled = allButton.getSelection() || selection.length > 0;
        getButton(OK).setEnabled(enabled);
    }
}