@Override
 public void showChangeSetInView(ChangeSet cs) {
   String objectId = cs.getId();
   GitRepository repo = (GitRepository) cs.getRepository();
   Repository repository = repo.getRepository();
   CommitEditor.openQuiet(new RepositoryCommit(repository, getCommit(repository, objectId)));
 }
示例#2
0
 @Override
 protected void showMatch(Match match, int currentOffset, int currentLength, boolean activate)
     throws PartInitException {
   if (match instanceof CommitMatch) CommitEditor.open(((CommitMatch) match).getCommit());
 }