use of org.eclipse.egit.ui.internal.pull.PullOperationUI in project dbeaver by serge-rider.
the class GITUpdateHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Repository[] repos = this.getRepositories(event);
if (ArrayUtils.isEmpty(repos)) {
return null;
} else {
Set<Repository> repositories = new LinkedHashSet<>(Arrays.asList(repos));
PullOperationUI pullOperationUI = new PullOperationUI(repositories);
pullOperationUI.start();
return null;
}
}
use of org.eclipse.egit.ui.internal.pull.PullOperationUI in project dbeaver by dbeaver.
the class GITUpdateHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Repository[] repos = this.getRepositories(event);
if (ArrayUtils.isEmpty(repos)) {
return null;
} else {
Set<Repository> repositories = new LinkedHashSet<>(Arrays.asList(repos));
PullOperationUI pullOperationUI = new PullOperationUI(repositories);
pullOperationUI.start();
return null;
}
}
use of org.eclipse.egit.ui.internal.pull.PullOperationUI 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);
}
};
}
use of org.eclipse.egit.ui.internal.pull.PullOperationUI in project egit by eclipse.
the class PullFromUpstreamActionHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Repository[] repos = getRepositories(event);
if (repos.length == 0)
return null;
Set<Repository> repositories = new LinkedHashSet<>(Arrays.asList(repos));
new PullOperationUI(repositories).start();
return null;
}
Aggregations