19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.LinkedHashMap;
23 import org.openide.nodes.Sheet;
24 import org.openide.util.NbBundle;
40 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png");
46 "LocalDirectoryNode.createSheet.name.name=Name",
47 "LocalDirectoryNode.createSheet.name.displayName=Name",
48 "LocalDirectoryNode.createSheet.name.desc=no description",
49 "LocalDirectoryNode.createSheet.noDesc=no description"})
51 Sheet sheet = super.createSheet();
52 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
53 if (sheetSet == null) {
54 sheetSet = Sheet.createPropertiesSet();
58 sheetSet.put(
new NodeProperty<>(Bundle.LocalDirectoryNode_createSheet_name_name(),
59 Bundle.LocalDirectoryNode_createSheet_name_displayName(),
60 Bundle.LocalDirectoryNode_createSheet_name_desc(),
65 Map<String, Object> map =
new LinkedHashMap<>();
68 final String
NO_DESCR = Bundle.LocalDirectoryNode_createSheet_noDesc();
69 for (Map.Entry<String, Object> entry : map.entrySet()) {
78 public <T> T accept(ContentNodeVisitor<T> visitor) {
79 return visitor.visit(
this);
83 public <T> T accept(DisplayableItemNodeVisitor<T> visitor) {
84 return visitor.visit(
this);
static String nameForLocalDir(LocalDirectory ld)
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
LocalDirectoryNode(LocalDirectory ld)
static final String NO_DESCR
void addTagProperty(Sheet.Set sheetSet)