getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
folderSelectionDialog.setInput(mProject);
folderSelectionDialog.setTitle(getLabelText());
folderSelectionDialog.setMessage(getPreferenceName());
folderSelectionDialog.setValidator(new ISelectionStatusValidator() {
public IStatus validate(Object[] selection) {
if (selection.length == 1 && selection[0] instanceof IFolder) {
return new Status(IStatus.OK, CasEditorPlugin.ID, 0, "", null);
}