Iterator<Object> it = selection.iterator();
String[] names = new String[selection.size()];
List<Repository> repos = new ArrayList<Repository>();
for (int i = 0; it.hasNext(); i++) {
Repository repo = (Repository)it.next();
repos.add(repo);
names[i] = repo.getName();
}
MessageDialog diag = new MessageDialog(
repositoryViewer.getTable().getShell(),
"Remove Repositor" + (selection.size() > 1 ? "ies" : "y"),