19 package org.sleuthkit.autopsy.datamodel;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.Action;
24 import org.apache.commons.lang3.tuple.Pair;
25 import org.openide.nodes.Sheet;
26 import org.openide.util.NbBundle;
43 "UnsupportedContentNode.displayName=Unsupported Content",
46 super(unsupportedContent);
49 this.setDisplayName(Bundle.UnsupportedContentNode_displayName());
51 this.setIconBaseWithExtension(
"org/sleuthkit/autopsy/images/file-icon.png");
63 List<Action> actionsList =
new ArrayList<>();
65 for (Action a : super.getActions(
true)) {
69 return actionsList.toArray(
new Action[actionsList.size()]);
74 "UnsupportedContentNode.createSheet.name.name=Name",
75 "UnsupportedContentNode.createSheet.name.displayName=Name",
76 "UnsupportedContentNode.createSheet.name.desc=no description",
80 Sheet sheet = super.createSheet();
81 Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);
82 if (sheetSet == null) {
83 sheetSet = Sheet.createPropertiesSet();
87 sheetSet.put(
new NodeProperty<>(Bundle.UnsupportedContentNode_createSheet_name_name(),
88 Bundle.UnsupportedContentNode_createSheet_name_displayName(),
89 Bundle.UnsupportedContentNode_createSheet_name_desc(),
90 this.getDisplayName()));
96 public <T> T accept(ContentNodeVisitor<T> visitor) {
97 return visitor.visit(
this);
107 return visitor.
visit(
this);
112 return getClass().getName();
124 return new ArrayList<>();
Action[] getActions(boolean popup)
UnsupportedContentNode(UnsupportedContent unsupportedContent)
CorrelationAttributeInstance getCorrelationAttributeInstance()
T visit(DataSourceFilesNode in)
DataResultViewerTable.HasCommentStatus getCommentProperty(List< Tag > tags, CorrelationAttributeInstance attribute)
Pair< Long, String > getCountPropertyAndDescription(CorrelationAttributeInstance.Type attributeType, String attributeValue, String defaultDescription)
List< Tag > getAllTagsFromDatabase()
static final String NO_DESCR