Examples of RepositoryCommit


Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

    String text = MessageFormat.format(UIText.StashesMenu_StashItemText,
        Integer.valueOf(index), stashCommit.getShortMessage());
    Action action = new Action(text) {
      @Override
      public void run() {
        RepositoryCommit repositoryCommit = new RepositoryCommit(repo,
            stashCommit);
        repositoryCommit.setStash(true);
        CommitEditor.openQuiet(repositoryCommit);
      }
    };
    return new ActionContributionItem(action);
  }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

      return objectId;
    }

    public void open() {
      try {
        RepositoryCommit commit;
        commit = searchCommit();
        if (commit != null)
          CommitEditor.openQuiet(commit);
        else
          informCommitNotFound();
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

      for (String repoDir : configuredRepositories) {
        Repository repository = repositoryCache
            .lookupRepository(new File(repoDir));
        RevCommit commit = getCommit(repository);
        if (commit != null)
          return new RepositoryCommit(repository, commit);
      }

      return null;
    }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

    if (repo == null)
      return null;

    List<RepositoryCommit> repositoryCommits = new ArrayList<RepositoryCommit>();
    for (RevCommit commit : commits)
      repositoryCommits.add(new RepositoryCommit(repo, commit));

    final IStructuredSelection selected = new StructuredSelection(
        repositoryCommits);
    CommonUtils
        .runCommand(
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

    BasicConfigurationDialog.show(repo);

    List<RepositoryCommit> repositoryCommits = new ArrayList<RepositoryCommit>();
    for (RevCommit commit : commits)
      repositoryCommits.add(new RepositoryCommit(repo, commit));
    final IStructuredSelection selected = new StructuredSelection(
        repositoryCommits);
    CommonUtils
        .runCommand(
            org.eclipse.egit.ui.internal.commit.command.RevertHandler.ID,
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

          UIText.SquashHandler_ErrorCheckingIfCommitsAreOnCurrentBranch, e);
    }

    List<RepositoryCommit> repositoryCommits = new ArrayList<RepositoryCommit>();
    for (RevCommit commit : commits)
      repositoryCommits.add(new RepositoryCommit(repository, commit));

    final IStructuredSelection selected = new StructuredSelection(
        repositoryCommits);
    CommonUtils.runCommand(
        org.eclipse.egit.ui.internal.commit.command.SquashHandler.ID,
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

          UIText.RewordHandler_ErrorCheckingIfCommitIsOnCurrentBranch,
          e);
    }

    final IStructuredSelection selected = new StructuredSelection(
        new RepositoryCommit(repository, commit));
    CommonUtils
        .runCommand(
            org.eclipse.egit.ui.internal.commit.command.RewordHandler.ID,
            selected);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

          UIText.EditHandler_ErrorCheckingIfCommitIsOnCurrentBranch,
          e);
    }

    final IStructuredSelection selected = new StructuredSelection(
        new RepositoryCommit(repository, commit));
    CommonUtils.runCommand(
        org.eclipse.egit.ui.internal.commit.command.EditHandler.ID,
        selected);
    openStagingAndRebaseInteractiveViews(repository);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

  public Object execute(ExecutionEvent event) throws ExecutionException {
    Repository repository = getRepository(event);
    List<RevCommit> commits = getSelectedCommits(event);
    for (RevCommit commit : commits) {
      try {
        CommitEditor.open(new RepositoryCommit(repository, commit));
      } catch (PartInitException e) {
        Activator.showError("Error opening commit viewer", e); //$NON-NLS-1$
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.egit.ui.internal.commit.RepositoryCommit

    if (node instanceof RefNode || node instanceof TagNode)
      return new CheckoutCommand().execute(event);
    if (node instanceof FileNode)
      return new OpenInEditorCommand().execute(event);
    if (node instanceof StashedCommitNode) {
      RepositoryCommit repositoryCommit = new RepositoryCommit(
          node.getRepository(),
          ((StashedCommitNode) node).getObject());
      repositoryCommit.setStash(true);
      CommitEditor.openQuiet(repositoryCommit);
    }

    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.