19 package org.sleuthkit.autopsy.datamodel;
 
   21 import java.util.ArrayList;
 
   22 import java.util.Arrays;
 
   23 import java.util.List;
 
   25 import javax.swing.Action;
 
   26 import org.openide.nodes.AbstractNode;
 
   27 import org.openide.nodes.Children;
 
   28 import org.openide.nodes.Sheet;
 
   29 import org.openide.util.Lookup;
 
   30 import org.openide.util.NbBundle;
 
   31 import org.openide.util.NbBundle.Messages;
 
   32 import org.openide.util.lookup.Lookups;
 
   47         super(children, Lookups.singleton(thing));
 
   55         super(children, lookup);
 
   68                 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/Folder-icon.png"); 
 
   70                 this.setIconBaseWithExtension(
FileNode.getIconForFileType(af));
 
   78         Sheet sheet = super.createSheet();
 
   79         Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
 
   80         if (sheetSet == null) {
 
   81             sheetSet = Sheet.createPropertiesSet();
 
   87         sheetSet.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(), 
"KeyValueNode.createSheet.name.name"),
 
   88                 NbBundle.getMessage(
this.getClass(), 
"KeyValueNode.createSheet.name.displayName"),
 
   89                 NbBundle.getMessage(
this.getClass(), 
"KeyValueNode.createSheet.name.desc"),
 
   92         for (Map.Entry<String, Object> entry : data.
getMap().entrySet()) {
 
   93             String key = entry.getKey();
 
   94             Object value = entry.getValue();
 
   97                     NbBundle.getMessage(
this.getClass(), 
"KeyValueNode.createSheet.map.desc"),
 
  113         "KeyValueNode.menuItemText.viewFileInDir=View Source File in Directory" 
  117         List<Action> actionsList = 
new ArrayList<>();
 
  122             actionsList.add(
new ViewContextAction(Bundle.KeyValueNode_menuItemText_viewFileInDir(), file));
 
  124         actionsList.add(null); 
 
  125         actionsList.addAll(Arrays.asList(super.getActions(popup)));
 
  127         return actionsList.toArray(
new Action[actionsList.size()]);
 
Map< String, Object > getMap()
static ViewFileInTimelineAction createViewSourceFileAction(AbstractFile file)
KeyValueNode(KeyValue thing, Children children)
KeyValueNode(KeyValue thing, Children children, Lookup lookup)
Action[] getActions(boolean popup)