try {
IScriptProject[] projects = DLTKCore.create(
ResourcesPlugin.getWorkspace().getRoot())
.getScriptProjects();
for (int i = 0; i < projects.length; i++) {
IScriptProject curr = projects[i];
if (hasProjectSpecificOptions(curr.getProject())) {
projectsWithSpecifics.add(curr);
}
}
} catch (ModelException e) {
// ignore
}
ProjectSelectionDialog dialog = new ProjectSelectionDialog(
getShell(), projectsWithSpecifics);
if (dialog.open() == Window.OK) {
IScriptProject res = (IScriptProject) dialog.getFirstResult();
openProjectProperties(res.getProject(), data);
}
}
}