use of com.google.gerrit.client.ui.CommentLinkProcessor in project gerrit by GerritCodeReview.
the class Message method renderComments.
private void renderComments(List<CommentInfo> list) {
CommentLinkProcessor clp = history.getCommentLinkProcessor();
PatchSet.Id ps = new PatchSet.Id(history.getChangeId(), info._revisionNumber());
TreeMap<String, List<CommentInfo>> m = byPath(list);
List<CommentInfo> l = m.remove(Patch.COMMIT_MSG);
if (l != null) {
comments.add(new FileComments(clp, ps, Util.C.commitMessage(), l));
}
l = m.remove(Patch.MERGE_LIST);
if (l != null) {
comments.add(new FileComments(clp, ps, Util.C.mergeList(), l));
}
for (Map.Entry<String, List<CommentInfo>> e : m.entrySet()) {
comments.add(new FileComments(clp, ps, e.getKey(), e.getValue()));
}
}
Aggregations