Examples of ViewContextAction


Examples of org.sleuthkit.autopsy.directorytree.ViewContextAction

        return actions;
    }       
   
  public  static List<Action> getActions(Directory directory, boolean isArtifactSource) {
        List<Action> actions = new ArrayList<>();       
        actions.add(new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), directory));
        DirectoryNode directoryNode = new DirectoryNode(directory);
        actions.add(null); // creates a menu separator
        actions.add(new NewWindowViewAction(VIEW_IN_NEW_WINDOW, directoryNode));
        actions.add(new ExternalViewerAction(OPEN_IN_EXTERNAL_VIEWER, directoryNode));
        actions.add(null); // creates a menu separator
View Full Code Here

Examples of org.sleuthkit.autopsy.directorytree.ViewContextAction

        return actions;
    }       
   
  public  static List<Action> getActions(VirtualDirectory directory, boolean isArtifactSource) {
        List<Action> actions = new ArrayList<>();
        actions.add(new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), directory));
        VirtualDirectoryNode directoryNode = new VirtualDirectoryNode(directory);
        actions.add(null); // creates a menu separator
        actions.add(new NewWindowViewAction(VIEW_IN_NEW_WINDOW, directoryNode));
        actions.add(new ExternalViewerAction(OPEN_IN_EXTERNAL_VIEWER, directoryNode));
        actions.add(null); // creates a menu separator
View Full Code Here

Examples of org.sleuthkit.autopsy.directorytree.ViewContextAction

        return actions;
    }       
       
  public  static List<Action> getActions(LocalFile file, boolean isArtifactSource) {
        List<Action> actions = new ArrayList<>();
        actions.add(new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
        final LocalFileNode localFileNode = new LocalFileNode(file);
        actions.add(null); // creates a menu separator
        actions.add(new NewWindowViewAction(VIEW_IN_NEW_WINDOW, localFileNode));
        actions.add(new ExternalViewerAction(OPEN_IN_EXTERNAL_VIEWER, localFileNode));
        actions.add(null); // creates a menu separator
View Full Code Here

Examples of org.sleuthkit.autopsy.directorytree.ViewContextAction

        return actions;
    }       
       
  public  static List<Action> getActions(DerivedFile file, boolean isArtifactSource) {
        List<Action> actions = new ArrayList<>();
        actions.add(new ViewContextAction((isArtifactSource ? VIEW_SOURCE_FILE_IN_DIR : VIEW_FILE_IN_DIR), file));
        final LocalFileNode localFileNode = new LocalFileNode(file);
        actions.add(null); // creates a menu separator
        actions.add(new NewWindowViewAction(VIEW_IN_NEW_WINDOW, localFileNode));
        actions.add(new ExternalViewerAction(OPEN_IN_EXTERNAL_VIEWER, localFileNode));
        actions.add(null); // creates a menu separator
View Full Code Here

Examples of org.sleuthkit.autopsy.directorytree.ViewContextAction

     */
    @Override
    public Action[] getActions(boolean popup) {
        List<Action> actionsList = new ArrayList<>();       
        if (!this.getDirectoryBrowseMode()) {
            actionsList.add(new ViewContextAction(NbBundle.getMessage(this.getClass(), "FileNode.viewFileInDir.text"), this));
            actionsList.add(null); // creates a menu separator
        }
        actionsList.add(new NewWindowViewAction(
                NbBundle.getMessage(this.getClass(), "FileNode.getActions.viewInNewWin.text"), this));
        actionsList.add(new ExternalViewerAction(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.