Go to the documentation of this file.
19package org.sleuthkit.autopsy.directorytree;
21import java.awt.event.ActionEvent;
22import java.awt.event.InputEvent;
23import java.awt.event.KeyEvent;
24import java.util.Collection;
25import java.util.HashSet;
26import javax.swing.AbstractAction;
27import javax.swing.KeyStroke;
28import org.openide.util.NbBundle.Messages;
29import org.openide.util.Utilities;
30import org.sleuthkit.datamodel.AbstractFile;
37@Messages({
"ExternalViewerShortcutAction.title.text=Open in External Viewer Ctrl+E"})
43 super(Bundle.ExternalViewerShortcutAction_title_text());
60 final Collection<AbstractFile> selectedFiles =
new HashSet<>(Utilities.actionsGlobalContext().lookupAll(AbstractFile.class));
61 if (!selectedFiles.isEmpty()) {
62 for (AbstractFile file : selectedFiles) {
void actionPerformed(ActionEvent e)
void actionPerformed(ActionEvent e)
static ExternalViewerShortcutAction instance
static final KeyStroke EXTERNAL_VIEWER_SHORTCUT
static synchronized ExternalViewerShortcutAction getInstance()
ExternalViewerShortcutAction()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.