project.close(closeMonitor);
}
closeMonitor.done();
}
CheckoutCommand co = new Git(repository).checkout();
co.setName(target);
try {
co.call();
} catch (CheckoutConflictException e) {
return;
} catch (JGitInternalException e) {
throw new CoreException(Activator.error(e.getMessage(), e));
} catch (GitAPIException e) {
throw new CoreException(Activator.error(e.getMessage(), e));
} finally {
BranchOperation.this.result = co.getResult();
}
if (result.getStatus() == Status.NONDELETED)
retryDelete(result.getUndeletedList());
pm.worked(1);
List<String> pathsToHandle = new ArrayList<String>();
pathsToHandle.addAll(co.getResult().getModifiedList());
pathsToHandle.addAll(co.getResult().getRemovedList());
pathsToHandle.addAll(co.getResult().getConflictList());
IProject[] refreshProjects = ProjectUtil
.getProjectsContaining(repository, pathsToHandle);
ProjectUtil.refreshValidProjects(refreshProjects, delete,
new SubProgressMonitor(pm, 1));
pm.worked(1);