* "Adds" repositories
*/
public class AddCommand extends
RepositoriesViewCommandHandler<RepositoryTreeNode> {
public Object execute(ExecutionEvent event) throws ExecutionException {
RepositorySearchWizard wizard = new RepositorySearchWizard(
util.getConfiguredRepositories());
WizardDialog dialog = new WizardDialog(getShell(event), wizard);
if (dialog.open() == Window.OK) {
for (String dir : wizard.getDirectories()) {
File repositoryDir = new File(dir);
addRepository(repositoryDir);
}
}
return null;