use of org.eclipse.egit.gitflow.op.CurrentBranchPublishOperation in project egit by eclipse.
the class AbstractPublishHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
final GitFlowRepository gfRepo = GitFlowHandlerUtil.getRepository(event);
try {
int timeout = Activator.getDefault().getPreferenceStore().getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
CurrentBranchPublishOperation featurePublishOperation = new CurrentBranchPublishOperation(gfRepo, timeout);
JobUtil.scheduleUserWorkspaceJob(featurePublishOperation, getProgressText(), JobFamilies.REBASE);
} catch (CoreException e) {
return error(e.getMessage(), e);
}
return null;
}
Aggregations