ILogEntry entry = adaptToLogEntry(element); if (entry == null) return ""; switch (columnIndex) { case COL_REVISION: String revision = entry.getRevision().toString(); if (currentFile.getLastChangedRevision().equals(entry.getRevision())) { revision = Policy.bind("currentRevision", revision); } return revision; case COL_DATE: Date date = entry.getDate(); if (date == null) return Policy.bind("notAvailable"); return DateFormat.getInstance().format(date); case COL_AUTHOR: return entry.getAuthor(); case COL_COMMENT: String comment = entry.getComment(); int index = comment.indexOf("\n"); switch (index) { case -1: return comment; case 0: return Policy.bind("HistoryView.[...]_4"); default: return Policy.bind("SVNCompareRevisionsInput.truncate", comment.substring(0, index)); } } return ""; }
ILogEntry entry= adaptToLogEntry(element);  if (entry == null) return ""; switch (columnIndex) { case COL_REVISION : String revision= entry.getRevision().toString(); if (currentFile.getLastChangedRevision().equals(entry.getRevision())) { revision= Policy.bind("currentRevision", revision); } return revision; case COL_DATE : Date date= entry.getDate(); if (date == null) return Policy.bind("notAvailable"); return DateFormat.getInstance().format(date); case COL_AUTHOR : return entry.getAuthor() == null ? Policy.bind("notAvailable") : entry.getAuthor(); case COL_COMMENT : String comment= entry.getComment(); int index= comment.indexOf("\n"); switch (index) { case -1 : return comment; case 0 : return Policy.bind("HistoryView.[...]_4"); default : return Policy.bind("SVNCompareRevisionsInput.truncate", comment.substring(0, index)); } } return ""; }
		public String getColumnText(Object element, int columnIndex) {            ILogEntry entry = adaptToLogEntry(element);			if (entry == null) return ""; //$NON-NLS-1$			switch (columnIndex) {				case COL_REVISION:					String revision = entry.getRevision().toString();					if (currentFile.getLastChangedRevision().equals(entry.getRevision())) {						revision = Policy.bind("currentRevision", revision); //$NON-NLS-1$					}					return revision;				case COL_DATE:					Date date = entry.getDate();					if (date == null) return Policy.bind("notAvailable"); //$NON-NLS-1$					return DateFormat.getInstance().format(date);				case COL_AUTHOR:					return entry.getAuthor();				case COL_COMMENT:					String comment = entry.getComment();					int index = comment.indexOf("\n"); //$NON-NLS-1$					switch (index) {						case -1:							return comment;						case 0:							return Policy.bind("HistoryView.[...]_4"); //$NON-NLS-1$						default:							return Policy.bind("SVNCompareRevisionsInput.truncate", comment.substring(0, index)); //$NON-NLS-1$					}			}			return ""; //$NON-NLS-1$		}