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;
44 static String nameForImage(
Image i) {
55 String imgName = nameForImage(img);
56 this.setDisplayName(imgName);
57 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/hard-drive-icon.jpg");
68 List<Action> actionsList =
new ArrayList<Action>();
71 NbBundle.getMessage(
this.getClass(),
"ImageNode.getActions.viewInNewWin.text"),
this));
73 NbBundle.getMessage(
this.getClass(),
"ImageNode.getActions.openFileSearchByAttr.text")));
76 return actionsList.toArray(
new Action[0]);
81 Sheet s = super.createSheet();
82 Sheet.Set ss = s.get(Sheet.PROPERTIES);
84 ss = Sheet.createPropertiesSet();
88 ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.name"),
89 NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.displayName"),
90 NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.desc"),
97 public <T> T accept(ContentNodeVisitor<T> v) {
108 return v.
visit(
this);
static List< Action > getActions(Content c)
Action[] getActions(boolean context)
T visit(DataSourcesNode in)