19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.LinkedHashMap;
23 import java.util.List;
25 import javax.swing.Action;
26 import org.openide.nodes.Sheet;
27 import org.openide.util.NbBundle;
45 public String toString() {
46 return NbBundle.getMessage(this.getClass(),
"LayoutFileNode.propertyType.parts");
61 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/carved-file-icon-16.png");
63 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/file-icon-deleted.png");
69 Sheet s = super.createSheet();
70 Sheet.Set ss = s.get(Sheet.PROPERTIES);
72 ss = Sheet.createPropertiesSet();
76 Map<String, Object> map =
new LinkedHashMap<>();
79 ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"LayoutFileNode.createSheet.name.name"),
80 NbBundle.getMessage(
this.getClass(),
"LayoutFileNode.createSheet.name.displayName"),
81 NbBundle.getMessage(
this.getClass(),
"LayoutFileNode.createSheet.name.desc"),
84 final String NO_DESCR = NbBundle.getMessage(this.getClass(),
"LayoutFileNode.createSheet.noDescr.text");
85 for (Map.Entry<String, Object> entry : map.entrySet()) {
86 ss.put(
new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
93 public <T> T accept(ContentNodeVisitor<T> v) {
104 return v.
visit(
this);
109 List<Action> actionsList =
new ArrayList<>();
111 NbBundle.getMessage(
this.getClass(),
"LayoutFileNode.getActions.viewInNewWin.text"),
this));
113 NbBundle.getMessage(
this.getClass(),
"LayoutFileNode.getActions.openInExtViewer.text"),
this));
114 actionsList.add(null);
116 actionsList.add(null);
119 return actionsList.toArray(
new Action[0]);
LayoutFileNode(LayoutFile lf)
TskData.TSK_DB_FILES_TYPE_ENUM getType()
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
T visit(DataSourcesNode in)
static String nameForLayoutFile(LayoutFile lf)
static void fillPropertyMap(Map< String, Object > map, LayoutFile content)
Action[] getActions(boolean context)
static synchronized AddContentTagAction getInstance()