Bug 82617 [Dialogs] Clean... dialog sorts projects in diff order than Package Explorer or Navigator
The Clean... dialog listing of projects for cleaning is sorted in a different manner than both the Package Explorer and the Navigator. Threw me at first for finding my project in the list.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java
*/
	protected void doClean(boolean cleanAll, IProgressMonitor monitor)
	        throws CoreException {
	    if (cleanAll)
	        ResourcesPlugin.getWorkspace().build(
	                IncrementalProjectBuilder.CLEAN_BUILD, monitor);
	    else {
	        try {
	            monitor.beginTask(IDEWorkbenchMessages
	                    .getString("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);
    }
}