19 package org.sleuthkit.autopsy.datamodel;
 
   21 import java.util.ArrayList;
 
   22 import java.util.Arrays;
 
   23 import java.util.LinkedHashMap;
 
   24 import java.util.List;
 
   26 import javax.swing.Action;
 
   27 import org.openide.nodes.Sheet;
 
   28 import org.openide.util.NbBundle;
 
   46         this.setDisplayName(af.
getName());
 
   50             this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png"); 
 
   52             this.setIconBaseWithExtension(
FileNode.getIconForFileType(af));
 
   59         Sheet s = super.createSheet();
 
   60         Sheet.Set ss = s.get(Sheet.PROPERTIES);
 
   62             ss = Sheet.createPropertiesSet();
 
   66         Map<String, Object> map = 
new LinkedHashMap<>();
 
   69         ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.createSheet.name.name"),
 
   70                 NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.createSheet.name.displayName"),
 
   71                 NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.createSheet.name.desc"),
 
   74         final String NO_DESCR = NbBundle.getMessage(this.getClass(), 
"LocalFileNode.createSheet.noDescr.text");
 
   75         for (Map.Entry<String, Object> entry : map.entrySet()) {
 
   76             ss.put(
new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
 
   87         List<Action> actionsList = 
new ArrayList<>();
 
   88         actionsList.addAll(Arrays.asList(super.getActions(
true)));
 
   89         actionsList.add(
new ViewContextAction(NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.viewFileInDir.text"), this.content));
 
   90         actionsList.add(null); 
 
   92                 NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.getActions.viewInNewWin.text"), 
this));
 
   94                 NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.getActions.openInExtViewer.text"), 
this));
 
   95         actionsList.add(null); 
 
   98                 NbBundle.getMessage(
this.getClass(), 
"LocalFileNode.getActions.searchFilesSameMd5.text"), 
this));
 
   99         actionsList.add(null); 
 
  102         return actionsList.toArray(
new Action[0]);
 
  106     public <T> T accept(ContentNodeVisitor<T> v) {
 
  107         return v.visit(
this);
 
  111     public <T> T accept(DisplayableItemNodeVisitor<T> v) {
 
  112         return v.visit(
this);
 
  125         return getClass().getName();
 
void addTagProperty(Sheet.Set ss)
 
LocalFileNode(AbstractFile af)
 
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
 
Action[] getActions(boolean context)
 
static synchronized AddContentTagAction getInstance()