5184 display name for FileKnown status not enum

This commit is contained in:
William Schaefer 2019-06-13 15:36:05 -04:00
parent e45e385cf7
commit b80c7d69c7

View File

@ -175,7 +175,7 @@ final class OccurrencePanel extends javax.swing.JPanel {
org.openide.awt.Mnemonics.setLocalizedText(knownStatusLabel, Bundle.OccurrencePanel_commonPropertyKnownStatusLabel_text()); org.openide.awt.Mnemonics.setLocalizedText(knownStatusLabel, Bundle.OccurrencePanel_commonPropertyKnownStatusLabel_text());
addItemToBag(gridY, 0, 0, 0, knownStatusLabel); addItemToBag(gridY, 0, 0, 0, knownStatusLabel);
javax.swing.JLabel knownStatusValue = new javax.swing.JLabel(); javax.swing.JLabel knownStatusValue = new javax.swing.JLabel();
knownStatusValue.setText(knownStatus.toString()); knownStatusValue.setText(knownStatus.getName());
if (knownStatus == TskData.FileKnown.BAD) { if (knownStatus == TskData.FileKnown.BAD) {
knownStatusValue.setForeground(Color.RED); knownStatusValue.setForeground(Color.RED);
} }