Package org.eclipse.egit.ui.internal.commands.shared

Examples of org.eclipse.egit.ui.internal.commands.shared.AbstractRebaseCommandHandler


    final Ref ref = getRef(commit, repository, currentBranch);

    String jobname = NLS.bind(
        UIText.RebaseCurrentRefCommand_RebasingCurrentJobName,
        currentBranch, ref.getName());
    AbstractRebaseCommandHandler rebaseCurrentRef = new AbstractRebaseCommandHandler(
        jobname, UIText.RebaseCurrentRefCommand_RebaseCanceledMessage) {
      @Override
      protected RebaseOperation createRebaseOperation(
          Repository repository2) throws ExecutionException {
        return AbstractRebaseHistoryCommandHandler.this
            .createRebaseOperation(
            repository2, ref);
      }
    };
    rebaseCurrentRef.execute(repository);
    return null;
  }
View Full Code Here


    final Ref ref = getRef(commit, repository, currentBranch);

    String jobname = NLS.bind(
        UIText.RebaseCurrentRefCommand_RebasingCurrentJobName,
        currentBranch, ref.getName());
    AbstractRebaseCommandHandler rebaseCurrentRef = new AbstractRebaseCommandHandler(
        jobname, UIText.RebaseCurrentRefCommand_RebaseCanceledMessage) {
      @Override
      protected RebaseOperation createRebaseOperation(
          Repository repository2) throws ExecutionException {
        return new RebaseOperation(repository2, ref,
            RebaseInteractiveHandler.INSTANCE);
      }
    };
    rebaseCurrentRef.execute(repository);
    try {
      RebaseInteractiveView rebaseInteractiveView = (RebaseInteractiveView) HandlerUtil
          .getActiveWorkbenchWindowChecked(event).getActivePage()
          .showView(RebaseInteractiveView.VIEW_ID);
      rebaseInteractiveView.setInput(repository);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commands.shared.AbstractRebaseCommandHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.