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;
 
   45                     public String toString() {
 
   46                         return NbBundle.getMessage(this.getClass(), 
"LayoutFileNode.propertyType.parts");
 
   61             this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/carved-file-icon-16.png"); 
 
   63             this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/file-icon-deleted.png"); 
 
   69         Sheet s = super.createSheet();
 
   70         Sheet.Set ss = s.get(Sheet.PROPERTIES);
 
   72             ss = Sheet.createPropertiesSet();
 
   76         Map<String, Object> map = 
new LinkedHashMap<>();
 
   79         ss.put(
new NodeProperty<>(NbBundle.getMessage(
this.getClass(), 
"LayoutFileNode.createSheet.name.name"),
 
   80                 NbBundle.getMessage(
this.getClass(), 
"LayoutFileNode.createSheet.name.displayName"),
 
   81                 NbBundle.getMessage(
this.getClass(), 
"LayoutFileNode.createSheet.name.desc"),
 
   84         final String NO_DESCR = NbBundle.getMessage(this.getClass(), 
"LayoutFileNode.createSheet.noDescr.text");
 
   85         for (Map.Entry<String, Object> entry : map.entrySet()) {
 
   86             ss.put(
new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
 
   96     public <T> T accept(ContentNodeVisitor<T> v) {
 
  107         return v.
visit(
this);
 
  112         List<Action> actionsList = 
new ArrayList<>();
 
  113         for (Action a : super.getActions(
true)) {
 
  117                 NbBundle.getMessage(
this.getClass(), 
"LayoutFileNode.getActions.viewInNewWin.text"), 
this));
 
  119                 NbBundle.getMessage(
this.getClass(), 
"LayoutFileNode.getActions.openInExtViewer.text"), 
this));
 
  120         actionsList.add(null); 
 
  122         actionsList.add(null); 
 
  125         return actionsList.toArray(
new Action[0]);
 
  135         return getClass().getName();
 
LayoutFileNode(LayoutFile lf)
 
TskData.TSK_DB_FILES_TYPE_ENUM getType()
 
void addTagProperty(Sheet.Set ss)
 
static void fillPropertyMap(Map< String, Object > map, AbstractFile content)
 
T visit(DataSourcesNode in)
 
static String nameForLayoutFile(LayoutFile lf)
 
static void fillPropertyMap(Map< String, Object > map, LayoutFile content)
 
Action[] getActions(boolean context)
 
static synchronized AddContentTagAction getInstance()