19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.Action;
24 import org.openide.nodes.Sheet;
25 import org.openide.util.NbBundle;
42 static String nameForPool(Pool pool) {
43 return pool.getType().
getName();
54 String poolName = nameForPool(pool);
55 this.setDisplayName(poolName);
57 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/pool-icon.png");
69 List<Action> actionsList =
new ArrayList<>();
71 for (Action a : super.getActions(
true)) {
75 return actionsList.toArray(
new Action[actionsList.size()]);
80 "PoolNode.createSheet.name.name=Name",
81 "PoolNode.createSheet.name.displayName=Name",
82 "PoolNode.createSheet.name.desc=no description",
83 "PoolNode.createSheet.type.name=Type",
84 "PoolNode.createSheet.type.displayName=Type",
85 "PoolNode.createSheet.type.desc=no description",
89 Sheet sheet = super.createSheet();
90 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
91 if (sheetSet == null) {
92 sheetSet = Sheet.createPropertiesSet();
97 sheetSet.put(
new NodeProperty<>(Bundle.PoolNode_createSheet_name_name(),
98 Bundle.PoolNode_createSheet_name_displayName(),
99 Bundle.PoolNode_createSheet_name_desc(),
100 this.getDisplayName()));
101 sheetSet.put(
new NodeProperty<>(Bundle.PoolNode_createSheet_type_name(),
102 Bundle.PoolNode_createSheet_type_displayName(),
103 Bundle.PoolNode_createSheet_type_desc(),
104 pool.getType().getName()));
110 public <T> T accept(ContentNodeVisitor<T> visitor) {
111 return visitor.visit(
this);
121 return visitor.
visit(
this);
126 return getClass().getName();
138 return new ArrayList<>();
Action[] getActions(boolean popup)
List< Tag > getAllTagsFromDatabase()
T visit(DataSourceFilesNode in)