public IStatus runInWorkspace(IProgressMonitor monitor) {
monitor.beginTask("", repoPaths.size()); //$NON-NLS-1$
try {
for (Entry<Repository, List<String>> entry : repoPaths
.entrySet()) {
SubmoduleUpdateOperation op = new SubmoduleUpdateOperation(
entry.getKey());
if (entry.getValue() != null)
for (String path : entry.getValue())
op.addPath(path);
op.execute(new SubProgressMonitor(monitor, 1));
}
} catch (CoreException e) {
Activator.logError(
UIText.SubmoduleUpdateCommand_UpdateError, e);
}