From fdcf2655f391fe5a9758c6abdaa2dfe33faa0fdb Mon Sep 17 00:00:00 2001 From: Jeff Wallace Date: Mon, 2 Dec 2013 15:42:44 -0500 Subject: [PATCH] Added comments to clarify multiple ViewContextActions added to BlackboardArtifactNodes --- .../sleuthkit/autopsy/directorytree/DataResultFilterNode.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/directorytree/DataResultFilterNode.java b/Core/src/org/sleuthkit/autopsy/directorytree/DataResultFilterNode.java index 8ccc8a7405..e731945ee3 100755 --- a/Core/src/org/sleuthkit/autopsy/directorytree/DataResultFilterNode.java +++ b/Core/src/org/sleuthkit/autopsy/directorytree/DataResultFilterNode.java @@ -182,10 +182,13 @@ public class DataResultFilterNode extends FilterNode { || artifactTypeID == BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT.getTypeID()) { actions.add(new ViewContextAction("View File in Directory", ban)); } else { + // if the artifact links to another file, add an action to go to + // that file Content c = findLinked(ban); if (c != null) { actions.add(new ViewContextAction("View File in Directory", c)); } + // action to go to the source file of the artifact actions.add(new ViewContextAction("View Source File in Directory", ban)); } File f = ban.getLookup().lookup(File.class);