Search in sources :

Example 1 with CurrentBranchPublishOperation

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;
}
Also used : CoreException(org.eclipse.core.runtime.CoreException) CurrentBranchPublishOperation(org.eclipse.egit.gitflow.op.CurrentBranchPublishOperation) GitFlowRepository(org.eclipse.egit.gitflow.GitFlowRepository)

Aggregations

CoreException (org.eclipse.core.runtime.CoreException)1 GitFlowRepository (org.eclipse.egit.gitflow.GitFlowRepository)1 CurrentBranchPublishOperation (org.eclipse.egit.gitflow.op.CurrentBranchPublishOperation)1