Пример #1
0
 /** Hit up the server */
 public void refreshDiscussion() {
   assetService.loadDiscussionForAsset(
       artifact.getUuid(),
       new GenericCallback<List<DiscussionRecord>>() {
         public void onSuccess(List<DiscussionRecord> result) {
           updateCommentList(result);
         }
       });
 }
Пример #2
0
 private void sendNewComment(String text) {
   newCommentLayout.clear();
   newCommentLayout.add(new Image(images.spinner()));
   assetService.addToDiscussionForAsset(
       artifact.getUuid(),
       text,
       new GenericCallback<List<DiscussionRecord>>() {
         public void onSuccess(List<DiscussionRecord> result) {
           showNewCommentButton();
           updateCommentList(result);
         }
       });
 }