19 package org.sleuthkit.autopsy.datamodel;
21 import org.openide.nodes.AbstractNode;
22 import org.openide.nodes.Children;
23 import org.openide.nodes.Sheet;
24 import org.openide.util.Lookup;
44 static final String FILE_PARENT_NODE_KEY =
"orgsleuthkitautopsydatamodel" +
"FileTypeParentNode";
55 static AbstractFile findLinked(BlackboardArtifact artifact)
throws TskCoreException {
56 BlackboardAttribute pathIDAttribute = artifact.getAttribute(
new BlackboardAttribute.Type(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH_ID));
57 if (pathIDAttribute != null) {
58 long contentID = pathIDAttribute.getValueLong();
59 if (contentID != -1) {
60 return artifact.getSleuthkitCase().getAbstractFileById(contentID);
94 super(children, lookup);
153 Sheet currentSheet = this.getSheet();
154 Sheet.Set currentPropsSet = currentSheet.get(Sheet.PROPERTIES);
155 Property<?>[] currentProps = currentPropsSet.getProperties();
157 for (
int i = 0; i < currentProps.length; i++) {
158 if (currentProps[i].getName().equals(newProp.getName())) {
159 currentProps[i] = newProp;
163 currentPropsSet.put(currentProps);
164 currentSheet.put(currentPropsSet);
165 this.setSheet(currentSheet);
abstract boolean isLeafTypeNode()
abstract< T > T accept(DisplayableItemNodeVisitor< T > visitor)
NodeSelectionInfo selectedChildNodeInfo
DisplayableItemNode(Children children, Lookup lookup)
DisplayableItemNode(Children children)
synchronized final void updatePropertySheet(NodeProperty<?>...newProps)
abstract String getItemType()
NodeSelectionInfo getChildNodeSelectionInfo()
void setChildNodeSelectionInfo(NodeSelectionInfo selectedChildNodeInfo)