Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.directorytree.ViewContextAction Class Reference

Inherits AbstractAction.

Classes

class  AncestorVisitor
 

Public Member Functions

 ViewContextAction (String displayName, BlackboardArtifactNode artifactNode)
 
 ViewContextAction (String displayName, AbstractFsContentNode<?extends AbstractFile > fileSystemContentNode)
 
 ViewContextAction (String displayName, Content content)
 
void actionPerformed (ActionEvent event)
 

Private Attributes

final Content content
 

Static Private Attributes

static final Logger logger = Logger.getLogger(ViewContextAction.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

An action that displays the context for some content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Definition at line 58 of file ViewContextAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
BlackboardArtifactNode  artifactNode 
)

An action that displays the context for the source content of an artifact by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
artifactNodeThe artifact node for the artifact.

Definition at line 73 of file ViewContextAction.java.

References org.sleuthkit.autopsy.core.UserPreferences.hideKnownFilesInDataSourcesTree(), and org.sleuthkit.autopsy.core.UserPreferences.hideSlackFilesInDataSourcesTree().

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
AbstractFsContentNode<?extends AbstractFile >  fileSystemContentNode 
)

An action that displays the context for some file system content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
fileSystemContentNodeThe file system content node for the content.

Definition at line 95 of file ViewContextAction.java.

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
Content  content 
)

An action that displays the context for some content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
contentThe content.

Definition at line 109 of file ViewContextAction.java.

References org.sleuthkit.autopsy.directorytree.ViewContextAction.content.

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed ( ActionEvent  event)

Displays the context for some content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
eventThe action event.

Convert the list of ancestors into a list of tree nodes.

IMPORTANT: The "dummy" root node used to create this single layer of children needs to be wrapped in a DirectoryTreeFilterNode so that its child nodes will also be wrapped in DirectoryTreeFilterNodes, via DirectoryTreeFilterNodeChildren. Otherwise, the display names of the nodes in the branch will not have child node counts and will not match the display names of the corresponding nodes in the actual tree view.

Definition at line 126 of file ViewContextAction.java.

References org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.error(), org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.findInstance(), org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getExplorerManager(), org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getSelectedNode(), org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.getTree(), org.sleuthkit.autopsy.datamodel.DataSourcesNode.NAME, org.sleuthkit.autopsy.datamodel.DisplayableItemNode.setChildNodeSelectionInfo(), and org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.setDirectoryListingActive().

Member Data Documentation

final Content org.sleuthkit.autopsy.directorytree.ViewContextAction.content
private
final Logger org.sleuthkit.autopsy.directorytree.ViewContextAction.logger = Logger.getLogger(ViewContextAction.class.getName())
staticprivate

Definition at line 61 of file ViewContextAction.java.

final long org.sleuthkit.autopsy.directorytree.ViewContextAction.serialVersionUID = 1L
staticprivate

Definition at line 60 of file ViewContextAction.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.