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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
int typeID = art.getArtifactTypeID();
|
||||
String typeName = art.getArtifactTypeName();
|
||||
@ -1245,9 +1256,9 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
||||
return;
|
||||
}
|
||||
|
||||
treeNode = (typeID == BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT.getTypeID()) ?
|
||||
fileArtifactNodes[0] :
|
||||
fileArtifactNodes[1];
|
||||
treeNode = (typeID == BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT.getTypeID())
|
||||
? fileArtifactNodes[0]
|
||||
: fileArtifactNodes[1];
|
||||
} catch (TskCoreException ex) {
|
||||
LOGGER.log(Level.WARNING, "Error retrieving attributes", ex); //NON-NLS
|
||||
}
|
||||
|
@ -148,6 +148,12 @@ public class ViewContextAction extends AbstractAction {
|
||||
* selecting the parent in the tree view, then selecting the content in the
|
||||
* 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.
|
||||
*/
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user