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;
57 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/folder-icon-deleted.png");
58 }
else if (name.startsWith(LOGICAL_FILE_SET_PREFIX)) {
59 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/fileset-icon-16.png");
61 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png");
63 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png");
76 List<Action> actions =
new ArrayList<>();
78 NbBundle.getMessage(
this.getClass(),
"VirtualDirectoryNode.getActions.viewInNewWin.text"),
this));
83 return actions.toArray(
new Action[0]);
88 Sheet s = super.createSheet();
89 Sheet.Set ss = s.get(Sheet.PROPERTIES);
91 ss = Sheet.createPropertiesSet();
95 Map<String, Object> map =
new LinkedHashMap<>();
98 ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"VirtualDirectoryNode.createSheet.name.name"),
99 NbBundle.getMessage(
this.getClass(),
100 "VirtualDirectoryNode.createSheet.name.displayName"),
101 NbBundle.getMessage(
this.getClass(),
"VirtualDirectoryNode.createSheet.name.desc"),
104 final String NO_DESCR = NbBundle.getMessage(this.getClass(),
"VirtualDirectoryNode.createSheet.noDesc");
105 for (Map.Entry<String, Object> entry : map.entrySet()) {
106 ss.put(
new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
113 public <T> T accept(ContentNodeVisitor<T> v) {
114 return v.visit(
this);
118 public <T> T accept(DisplayableItemNodeVisitor<T> v) {
119 return v.visit(
this);
140 if ((metaFlag & allocFlag) == allocFlag) {
143 if ((metaFlag & unallocFlag) == unallocFlag) {
static String metaFlagToString(short metaFlag)
Action[] getActions(boolean popup)
static final String NAME_CARVED
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
VirtualDirectoryNode(VirtualDirectory ld)
static final String NAME_UNALLOC
static final String LOGICAL_FILE_SET_PREFIX
static String nameForLayoutFile(VirtualDirectory ld)
static Logger getLogger(String name)