final Repository repo = nodes.get(0).getRepository();
if (repo == null)
return null;
AddSubmoduleWizard wizard = new AddSubmoduleWizard(repo);
WizardDialog dialog = new WizardDialog(getShell(event), wizard);
if (dialog.open() == Window.OK) {
final String path = wizard.getPath();
final String uri = wizard.getUri().toPrivateASCIIString();
final SubmoduleAddOperation op = new SubmoduleAddOperation(repo,
path, uri);
Job job = new WorkspaceJob(MessageFormat.format(
UIText.SubmoduleAddCommand_JobTitle, path, uri)) {