Bug 57321 Remaining build UI items
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);
    }
}