use of org.eclipse.team.ui.synchronize.SynchronizeModelOperation in project egit by eclipse.
the class PullAction method getSubscriberOperation.
@Override
protected SynchronizeModelOperation getSubscriberOperation(ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
return new SynchronizeModelOperation(configuration, elements) {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
GitSynchronizeDataSet gsds = (GitSynchronizeDataSet) getConfiguration().getProperty(SYNCHRONIZATION_DATA);
Set<Repository> repositories = new HashSet<>();
for (GitSynchronizeData gsd : gsds) repositories.add(gsd.getRepository());
PullOperationUI pull = new PullOperationUI(repositories);
pull.execute(monitor);
}
};
}
Aggregations