19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.LinkedHashMap;
22 import java.util.List;
24 import org.openide.nodes.Sheet;
25 import org.openide.util.NbBundle;
45 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png");
51 "LocalDirectoryNode.createSheet.name.name=Name",
52 "LocalDirectoryNode.createSheet.name.displayName=Name",
53 "LocalDirectoryNode.createSheet.name.desc=no description",
54 "LocalDirectoryNode.createSheet.noDesc=no description"})
56 Sheet sheet = super.createSheet();
57 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
58 if (sheetSet == null) {
59 sheetSet = Sheet.createPropertiesSet();
64 sheetSet.put(
new NodeProperty<>(Bundle.LocalDirectoryNode_createSheet_name_name(),
65 Bundle.LocalDirectoryNode_createSheet_name_displayName(),
66 Bundle.LocalDirectoryNode_createSheet_name_desc(),
82 Map<String, Object> map =
new LinkedHashMap<>();
85 final String
NO_DESCR = Bundle.LocalDirectoryNode_createSheet_noDesc();
86 for (Map.Entry<String, Object> entry : map.entrySet()) {
94 public <T> T accept(ContentNodeVisitor<T> visitor) {
95 return visitor.visit(
this);
99 public <T> T accept(DisplayableItemNodeVisitor<T> visitor) {
100 return visitor.visit(
this);
final void addScoreProperty(Sheet.Set sheetSet, List< ContentTag > tags)
final CorrelationAttributeInstance getCorrelationAttributeInstance()
static String nameForLocalDir(LocalDirectory ld)
static boolean useCentralRepo()
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
LocalDirectoryNode(LocalDirectory ld)
static final String NO_DESCR
final void addCountProperty(Sheet.Set sheetSet, CorrelationAttributeInstance attribute)
final void addCommentProperty(Sheet.Set sheetSet, List< ContentTag > tags, CorrelationAttributeInstance attribute)
static boolean hideCentralRepoCommentsAndOccurrences()
final List< ContentTag > getContentTagsFromDatabase()