19 package org.sleuthkit.autopsy.directorytree;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.InputEvent;
23 import java.awt.event.KeyEvent;
24 import java.util.Collection;
25 import java.util.HashSet;
26 import javax.swing.AbstractAction;
27 import javax.swing.KeyStroke;
28 import org.openide.util.NbBundle.Messages;
29 import org.openide.util.Utilities;
37 @Messages({
"ExternalViewerShortcutAction.title.text=Open in External Viewer Ctrl+E"})
40 public static final KeyStroke EXTERNAL_VIEWER_SHORTCUT = KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_MASK);
43 super(Bundle.ExternalViewerShortcutAction_title_text());
52 if (null == instance) {
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)
static ExternalViewerShortcutAction instance
static synchronized ExternalViewerShortcutAction getInstance()
ExternalViewerShortcutAction()
void actionPerformed(ActionEvent e)