Package org.sleuthkit.autopsy.datamodel

Examples of org.sleuthkit.autopsy.datamodel.FileNode


                menuItems.add(extractMenuItem);

                MenuItem contentViewer = new MenuItem("Show Content Viewer");
                contentViewer.setOnAction((ActionEvent t) -> {
                    SwingUtilities.invokeLater(() -> {
                        new NewWindowViewAction("Show Content Viewer", new FileNode(getFile().getAbstractFile())).actionPerformed(null);
                    });
                });
                menuItems.add(contentViewer);

                MenuItem externalViewer = new MenuItem("Open in External Viewer");
                final ExternalViewerAction externalViewerAction = new ExternalViewerAction("Open in External Viewer", new FileNode(getFile().getAbstractFile()));

                externalViewer.setDisable(externalViewerAction.isEnabled() == false);
                externalViewer.setOnAction((ActionEvent t) -> {
                    SwingUtilities.invokeLater(() -> {
                        externalViewerAction.actionPerformed(null);
View Full Code Here


        return true;
    }

    @Override
    protected Node createNodeForKey(AbstractFile content) {
        return new FilterNodeLeaf(new FileNode(content, false));
    }
View Full Code Here

                //node[0] = new DirectoryNode((Directory)t);
                return node;
            }
            else{
                node[0] = new DataResultFilterNode(new FileNode(t, false), DirectoryTreeTopComponent.findInstance().getExplorerManager());
                //node[0] = new FileNode((File)t);
                return node;
            }
    }
View Full Code Here

            }
            Content c = ban.getLookup().lookup(File.class);
            Node n = null;
            boolean md5Action = false;
            if (c != null) {
                n = new FileNode((AbstractFile) c);
                md5Action = true;
            } else if ((c = ban.getLookup().lookup(Directory.class)) != null) {
                n = new DirectoryNode((Directory) c);
            } else if ((c = ban.getLookup().lookup(VirtualDirectory.class)) != null) {
                n = new VirtualDirectoryNode((VirtualDirectory) c);
View Full Code Here

TOP

Related Classes of org.sleuthkit.autopsy.datamodel.FileNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.