コード例 #1
0
 @Override
 public String getLineText(int line, Editor editor) {
   LastRevision revision = myRevisions.get(line);
   if (revision != null) {
     return String.format(
             "%" + myMaxDateLength + "s", DateFormatUtil.formatPrettyDate(revision.getDate()))
         + " "
         + revision.getAuthor();
   }
   return "";
 }
コード例 #2
0
 @Override
 public String getToolTip(int line, Editor editor) {
   LastRevision revision = myRevisions.get(line);
   if (revision != null) {
     return XmlStringUtil.escapeString(
         revision.getAuthor()
             + " "
             + DateFormatUtil.formatDateTime(revision.getDate())
             + "\n"
             + revision.getMessage());
   }
   return null;
 }