mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
optimization on bb art node: do not requery content, but reuse form Lookup
This commit is contained in:
parent
f419569c3c
commit
a260864ecb
@ -53,7 +53,8 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
|
||||
super(Children.LEAF, getLookups(artifact));
|
||||
|
||||
this.artifact = artifact;
|
||||
this.associated = getAssociatedContent(artifact);
|
||||
//this.associated = getAssociatedContent(artifact);
|
||||
this.associated = this.getLookup().lookup(Content.class);
|
||||
this.setName(Long.toString(artifact.getArtifactID()));
|
||||
this.setDisplayName(associated.getName());
|
||||
this.setIconBaseWithExtension(iconPath);
|
||||
@ -67,7 +68,8 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
|
||||
super(Children.LEAF, getLookups(artifact));
|
||||
|
||||
this.artifact = artifact;
|
||||
this.associated = getAssociatedContent(artifact);
|
||||
//this.associated = getAssociatedContent(artifact);
|
||||
this.associated = this.getLookup().lookup(Content.class);
|
||||
this.setName(Long.toString(artifact.getArtifactID()));
|
||||
this.setDisplayName(associated.getName());
|
||||
this.setIconBaseWithExtension("org/sleuthkit/autopsy/images/" + getIcon(BlackboardArtifact.ARTIFACT_TYPE.fromID(artifact.getArtifactTypeID())));
|
||||
|
Loading…
x
Reference in New Issue
Block a user