mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
Merge pull request #1134 from sidheshenator/directory_view_derived_files
Directory view derived files
This commit is contained in:
commit
223cc19d88
@ -107,6 +107,7 @@ ExtractedContentNode.name.text=Extracted Content
|
||||
ExtractedContentNode.createSheet.name.name=Name
|
||||
ExtractedContentNode.createSheet.name.displayName=Name
|
||||
ExtractedContentNode.createSheet.name.desc=no description
|
||||
LocalFileNode.viewFileInDir.text=View File in Directory
|
||||
FileNode.viewFileInDir.text=View File in Directory
|
||||
FileNode.getActions.viewInNewWin.text=View in New Window
|
||||
FileNode.getActions.openInExtViewer.text=Open in External Viewer
|
||||
|
@ -31,13 +31,11 @@ import org.sleuthkit.autopsy.directorytree.ExtractAction;
|
||||
import org.sleuthkit.autopsy.directorytree.HashSearchAction;
|
||||
import org.sleuthkit.autopsy.directorytree.NewWindowViewAction;
|
||||
import org.sleuthkit.autopsy.actions.AddContentTagAction;
|
||||
import org.sleuthkit.autopsy.directorytree.ViewContextAction;
|
||||
import org.sleuthkit.datamodel.AbstractFile;
|
||||
|
||||
/**
|
||||
* A Node for a LocalFile or DerivedFile content object.
|
||||
*
|
||||
* TODO should be able to extend FileNode after FileNode extends
|
||||
* AbstractFsContentNode<AbstractFile>
|
||||
*/
|
||||
public class LocalFileNode extends AbstractAbstractFileNode<AbstractFile> {
|
||||
|
||||
@ -84,6 +82,8 @@ public class LocalFileNode extends AbstractAbstractFileNode<AbstractFile> {
|
||||
@Override
|
||||
public Action[] getActions(boolean context) {
|
||||
List<Action> actionsList = new ArrayList<>();
|
||||
actionsList.add(new ViewContextAction(NbBundle.getMessage(this.getClass(), "LocalFileNode.viewFileInDir.text"), this.content));
|
||||
actionsList.add(null); // creates a menu separator
|
||||
actionsList.add(new NewWindowViewAction(
|
||||
NbBundle.getMessage(this.getClass(), "LocalFileNode.getActions.viewInNewWin.text"), this));
|
||||
actionsList.add(new ExternalViewerAction(
|
||||
@ -112,4 +112,4 @@ public class LocalFileNode extends AbstractAbstractFileNode<AbstractFile> {
|
||||
public boolean isLeafTypeNode() {
|
||||
return true; //!this.hasContentChildren();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user