From 020de72efa2a78b992cd1f05b2e2e7a872a9b55c Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Tue, 18 Sep 2018 18:03:29 -0400 Subject: [PATCH] 4221 make column header tooltips more informative for S, C, and O columns --- .../autopsy/corecomponents/DataResultViewerTable.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java b/Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java index 4b93eba8cc..98f0264feb 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java @@ -18,7 +18,6 @@ */ package org.sleuthkit.autopsy.corecomponents; -import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.FontMetrics; @@ -662,19 +661,25 @@ public class DataResultViewerTable extends AbstractDataResultViewer { private class IconRendererTableListener implements TableColumnModelListener { @NbBundle.Messages({"DataResultViewerTable.commentRender.name=C", + "DataResultViewerTable.commentRender.toolTip=Indicates the presence of a comment associated with the item", "DataResultViewerTable.scoreRender.name=S", - "DataResultViewerTable.countRender.name=O"}) + "DataResultViewerTable.scoreRender.toolTip=Indicates item is tagged, notable, or otherwise may be of interest", + "DataResultViewerTable.countRender.name=O", + "DataResultViewerTable.countRender.toolTip=Number of data sources containing item in the Central Repository"}) @Override public void columnAdded(TableColumnModelEvent e) { if (e.getSource() instanceof ETableColumnModel) { TableColumn column = ((TableColumnModel) e.getSource()).getColumn(e.getToIndex()); if (column.getHeaderValue().toString().equals(Bundle.DataResultViewerTable_commentRender_name())) { //if the current column is a comment column set the cell renderer to be the HasCommentCellRenderer + outlineView.setPropertyColumnDescription(column.getHeaderValue().toString(), Bundle.DataResultViewerTable_commentRender_toolTip()); column.setCellRenderer(new HasCommentCellRenderer()); } else if (column.getHeaderValue().toString().equals(Bundle.DataResultViewerTable_scoreRender_name())) { //if the current column is a score column set the cell renderer to be the ScoreCellRenderer + outlineView.setPropertyColumnDescription(column.getHeaderValue().toString(), Bundle.DataResultViewerTable_scoreRender_toolTip()); column.setCellRenderer(new ScoreCellRenderer()); } else if (column.getHeaderValue().toString().equals(Bundle.DataResultViewerTable_countRender_name())) { + outlineView.setPropertyColumnDescription(column.getHeaderValue().toString(), Bundle.DataResultViewerTable_countRender_toolTip()); column.setCellRenderer(new CountCellRenderer()); } }