19 package org.sleuthkit.autopsy.datamodel;
21 import org.openide.nodes.Children;
22 import org.openide.nodes.Sheet;
23 import org.openide.util.NbBundle;
24 import org.openide.util.lookup.Lookups;
32 private static final String
NAME = NbBundle.getMessage(
RecentFilesNode.class,
"RecentFilesNode.name.text");
35 super(Children.create(
new RecentFilesChildren(skCase),
true), Lookups.singleton(NAME));
37 super.setDisplayName(NAME);
38 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/recent_files.png");
48 return visitor.
visit(
this);
53 Sheet sheet = super.createSheet();
54 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
55 if (sheetSet == null) {
56 sheetSet = Sheet.createPropertiesSet();
60 sheetSet.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(),
"RecentFilesNode.createSheet.name.name"),
61 NbBundle.getMessage(
this.getClass(),
"RecentFilesNode.createSheet.name.displayName"),
62 NbBundle.getMessage(
this.getClass(),
"RecentFilesNode.createSheet.name.desc"),
69 return getClass().getName();
T visit(DataSourcesNode in)