Update BlackboardArtifactNode.java

Get file name instead of artifact name for when you hover over the artifact
This commit is contained in:
Mark McKinnon 2020-01-10 15:06:56 -05:00
parent f11a6ac526
commit 43d59301c1

View File

@ -312,7 +312,11 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
} }
if (displayName.isEmpty() && artifact != null) { if (displayName.isEmpty() && artifact != null) {
displayName = artifact.getName(); try {
displayName = Case.getCurrentCaseThrows().getSleuthkitCase().getAbstractFileById(this.artifact.getObjectID()).getName();
} catch (TskCoreException | NoCurrentCaseException ex) {
displayName = artifact.getName();
}
} }
this.setDisplayName(displayName); this.setDisplayName(displayName);