}
Object[] selectArr = selectable.toArray();
new ModelElementSorter().sort(null, selectArr);
// IScriptProject project = elem.getScriptProject();
ScriptUILabelProvider labelProvider = new ScriptUILabelProvider();
ListSelectionDialog dialog = new ListSelectionDialog(
getShell(),
Arrays.asList(selectArr),
new ArrayContentProvider(),
labelProvider,
NewWizardMessages.ProjectsWorkbookPage_chooseProjects_message);
dialog
.setTitle(NewWizardMessages.ProjectsWorkbookPage_chooseProjects_title);
dialog.setHelpAvailable(false);
if (dialog.open() == Window.OK) {
Object[] result = dialog.getResult();
BPListElement[] cpElements = new BPListElement[result.length];
for (int i = 0; i < result.length; i++) {
IScriptProject curr = (IScriptProject) result[i];
cpElements[i] = new BPListElement(fCurrJProject,
IBuildpathEntry.BPE_PROJECT, curr.getPath(), curr