Added comments to clarify multiple ViewContextActions added to BlackboardArtifactNodes

This commit is contained in:
Jeff Wallace
2013-12-02 15:42:44 -05:00
parent 105f2d6f4c
commit fdcf2655f3
@@ -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);