out.print(header);
ProcessUtil procUtil = new ProcessUtil(getDataContext());
for (Iterator rows = l.iterator(); rows.hasNext();) {
TimeLogEntry tle = (TimeLogEntry) rows.next();
String entryPath = tle.getPath();
String phase = procUtil.getEffectivePhase(entryPath, false);
if (phase == null) {
int slashPos = entryPath.lastIndexOf('/');
phase = entryPath.substring(slashPos+1);
entryPath = entryPath.substring(0, slashPos);
}
out.println("<TR>");
out.println("<TD NOWRAP>" + HTMLUtils.escapeEntities(entryPath)
+ "</TD>");
out.println("<TD>" + HTMLUtils.escapeEntities(phase) + "</TD>");
out.println("<TD>" +
FormatUtil.formatDateTime(tle.getStartTime()) +
"</TD>");
out.println("<TD>" + tle.getElapsedTime() + "</TD>");
out.println("<TD>" + tle.getInterruptTime() + "</TD>");
String comment = tle.getComment();
out.println("<TD>" + (comment == null ? ""
: HTMLUtils.escapeEntities(comment)) + "</TD>");
out.println("</TR>");
}
out.println("</TABLE><!-- cutEnd -->");