private CheckedInChangeSet getChangeSetFor(ILogEntry logEntry) {
   ChangeSet[] sets = getSets();
   for (int i = 0; i < sets.length; i++) {
     ChangeSet set = sets[i];
     if (set instanceof CheckedInChangeSet
         && set.getComment().equals(logEntry.getComment())
         && ((CheckedInChangeSet) set).getAuthor().equals(logEntry.getAuthor())) {
       return (CheckedInChangeSet) set;
     }
   }
   return null;
 }
 public CVSCheckedInChangeSet(ILogEntry entry) {
   this.entry = entry;
   Date date = entry.getDate();
   String comment = Util.flattenText(entry.getComment());
   if (date == null) {
     setName("[" + entry.getAuthor() + "] " + comment); // $NON-NLS-1$ //$NON-NLS-2$
   } else {
     String dateString = DateFormat.getDateTimeInstance().format(date);
     setName(
         "["
             + entry.getAuthor()
             + "] ("
             + dateString
             + ") "
             + comment); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
   }
 }
 /* (non-Javadoc)
  * @see org.eclipse.team.core.subscribers.ChangeSet#getComment()
  */
 public String getComment() {
   return entry.getComment();
 }