From 2fea2047b17498b9cb4dc919bcd1bd87b0f94a89 Mon Sep 17 00:00:00 2001 From: millmanorama Date: Wed, 14 Sep 2016 11:04:55 +0200 Subject: [PATCH] add default file actions to FileWithCCNNode --- Core/src/org/sleuthkit/autopsy/datamodel/Accounts.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/Accounts.java b/Core/src/org/sleuthkit/autopsy/datamodel/Accounts.java index b30c831c29..ef03f0345f 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/Accounts.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/Accounts.java @@ -907,7 +907,11 @@ public class Accounts extends Observable implements AutopsyVisitableItem { Action[] actions = super.getActions(context); ArrayList arrayList = new ArrayList<>(); arrayList.addAll(Arrays.asList(actions)); - + try { + arrayList.addAll(DataModelActionsFactory.getActions(Accounts.this.skCase.getContentById(fileKey.getObjID()), false)); + } catch (TskCoreException ex) { + LOGGER.log(Level.SEVERE, "Error gettung content by id", ex); + } arrayList.add(new ApproveAccounts(getLookup().lookupAll(BlackboardArtifact.class))); arrayList.add(new RejectAccounts(getLookup().lookupAll(BlackboardArtifact.class))); return arrayList.toArray(new Action[arrayList.size()]);