@NbBundle.Messages({"GitHubIssueController.message.empty.title=Title must be set."})
  private boolean isValid() {
    // title
    String title = getPanel().getTitle();
    if (StringUtils.isEmpty(title)) {
      errorMessage = Bundle.GitHubIssueController_message_empty_title();
      return false;
    }

    // everything ok
    errorMessage = null;
    return true;
  }
 @NbBundle.Messages({
   "CommentAction.message.comment.added=Comment has been added",
   "CommentAction.message.comment.added.fail=Comment has not been added."
 })
 protected Comment comment(String comment) {
   GitHubIssuePanel p = getPanel();
   if (StringUtils.isEmpty(comment)) {
     return null;
   }
   Comment newComment = GitHubIssueSupport.comment(p.getIssue(), comment);
   if (newComment != null) {
     p.setNewComment(""); // NOI18N
     StatusDisplayer.getDefault().setStatusText(Bundle.CommentAction_message_comment_added());
   } else {
     UiUtils.showErrorDialog(Bundle.CommentAction_message_comment_added_fail());
   }
   return newComment;
 }