mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
commenting
This commit is contained in:
parent
564fefdba8
commit
2bcade64f4
@ -1144,6 +1144,17 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigates to artifact and shows in view.
|
||||||
|
*
|
||||||
|
* NOTE: This code will likely need updating in the event that the structure
|
||||||
|
* of the nodes is changed (i.e. adding parent levels). Places to look when
|
||||||
|
* changing node structure include:
|
||||||
|
*
|
||||||
|
* DirectoryTreeTopComponent.viewArtifact, ViewContextAction
|
||||||
|
*
|
||||||
|
* @param art The artifact.
|
||||||
|
*/
|
||||||
public void viewArtifact(final BlackboardArtifact art) {
|
public void viewArtifact(final BlackboardArtifact art) {
|
||||||
int typeID = art.getArtifactTypeID();
|
int typeID = art.getArtifactTypeID();
|
||||||
String typeName = art.getArtifactTypeName();
|
String typeName = art.getArtifactTypeName();
|
||||||
@ -1238,16 +1249,16 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
|||||||
if (setNode == null) {
|
if (setNode == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Children fileArtifactChildren = setNode.getChildren();
|
Children fileArtifactChildren = setNode.getChildren();
|
||||||
Node[] fileArtifactNodes = fileArtifactChildren == null ? null : fileArtifactChildren.getNodes();
|
Node[] fileArtifactNodes = fileArtifactChildren == null ? null : fileArtifactChildren.getNodes();
|
||||||
if (fileArtifactNodes == null || fileArtifactNodes.length != 2) {
|
if (fileArtifactNodes == null || fileArtifactNodes.length != 2) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
treeNode = (typeID == BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT.getTypeID()) ?
|
treeNode = (typeID == BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT.getTypeID())
|
||||||
fileArtifactNodes[0] :
|
? fileArtifactNodes[0]
|
||||||
fileArtifactNodes[1];
|
: fileArtifactNodes[1];
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
LOGGER.log(Level.WARNING, "Error retrieving attributes", ex); //NON-NLS
|
LOGGER.log(Level.WARNING, "Error retrieving attributes", ex); //NON-NLS
|
||||||
}
|
}
|
||||||
|
@ -147,6 +147,12 @@ public class ViewContextAction extends AbstractAction {
|
|||||||
* branch of the tree view to the level of the parent of the content,
|
* 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
|
* selecting the parent in the tree view, then selecting the content in the
|
||||||
* results view.
|
* results view.
|
||||||
|
*
|
||||||
|
* NOTE: This code will likely need updating in the event that the structure
|
||||||
|
* of the nodes is changed (i.e. adding parent levels). Places to look when
|
||||||
|
* changing node structure include:
|
||||||
|
*
|
||||||
|
* DirectoryTreeTopComponent.viewArtifact, ViewContextAction
|
||||||
*
|
*
|
||||||
* @param event The action event.
|
* @param event The action event.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user