19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.Action;
24 import org.openide.nodes.Sheet;
25 import org.openide.util.NbBundle;
39 "UnsupportedContentNode.displayName=Unsupported Content",})
41 super(unsupportedContent);
44 this.setDisplayName(Bundle.UnsupportedContentNode_displayName());
46 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/file-icon.png");
58 List<Action> actionsList =
new ArrayList<>();
60 for (Action a : super.getActions(
true)) {
64 return actionsList.toArray(
new Action[actionsList.size()]);
69 "UnsupportedContentNode.createSheet.name.name=Name",
70 "UnsupportedContentNode.createSheet.name.displayName=Name",
71 "UnsupportedContentNode.createSheet.name.desc=no description",})
74 Sheet sheet = super.createSheet();
75 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
76 if (sheetSet == null) {
77 sheetSet = Sheet.createPropertiesSet();
81 sheetSet.put(
new NodeProperty<>(Bundle.UnsupportedContentNode_createSheet_name_name(),
82 Bundle.UnsupportedContentNode_createSheet_name_displayName(),
83 Bundle.UnsupportedContentNode_createSheet_name_desc(),
84 this.getDisplayName()));
90 public <T> T accept(ContentNodeVisitor<T> visitor) {
91 return visitor.visit(
this);
101 return visitor.
visit(
this);
106 return getClass().getName();
118 return new ArrayList<>();
Action[] getActions(boolean popup)
UnsupportedContentNode(UnsupportedContent unsupportedContent)
T visit(DataSourceFilesNode in)
List< Tag > getAllTagsFromDatabase()