1 package com.atlassian.theplugin.idea.crucible.events;
2
3 import com.atlassian.theplugin.idea.crucible.comments.CrucibleReviewActionListener;
4 import com.atlassian.theplugin.idea.crucible.ReviewDataInfoAdapter;
5 import com.atlassian.theplugin.commons.crucible.api.model.GeneralComment;
6
7
8
9
10
11
12
13
14 public class ShowGeneralCommentEvent extends CrucibleEvent {
15 private ReviewDataInfoAdapter reviewDataInfoAdapter;
16 private GeneralComment comment;
17
18 public ShowGeneralCommentEvent(CrucibleReviewActionListener caller, ReviewDataInfoAdapter reviewDataInfoAdapter, GeneralComment generalComment) {
19 super(caller);
20 this.reviewDataInfoAdapter = reviewDataInfoAdapter;
21 this.comment = generalComment;
22 }
23
24 protected void notify(CrucibleReviewActionListener listener) {
25 listener.showGeneralComment(reviewDataInfoAdapter, comment);
26 }
27 }