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;
45 static String nameForImage(Image i) {
56 String imgName = nameForImage(img);
57 this.setDisplayName(imgName);
58 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/hard-drive-icon.jpg");
70 List<Action> actionsList =
new ArrayList<Action>();
73 NbBundle.getMessage(
this.getClass(),
"ImageNode.getActions.viewInNewWin.text"),
this));
75 NbBundle.getMessage(
this.getClass(),
"ImageNode.getActions.openFileSearchByAttr.text")));
78 return actionsList.toArray(
new Action[0]);
83 Sheet s = super.createSheet();
84 Sheet.Set ss = s.get(Sheet.PROPERTIES);
86 ss = Sheet.createPropertiesSet();
90 ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.name"),
91 NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.displayName"),
92 NbBundle.getMessage(
this.getClass(),
"ImageNode.createSheet.name.desc"),
99 public <T> T accept(ContentNodeVisitor<T> v) {
100 return v.visit(
this);
110 return v.
visit(
this);
static List< Action > getActions(Content c)
Action[] getActions(boolean context)
T visit(DataSourcesNode in)