19 package org.sleuthkit.autopsy.discovery.ui;
22 import java.awt.event.ActionEvent;
23 import java.util.Collection;
24 import java.util.HashSet;
25 import javax.swing.AbstractAction;
26 import org.openide.util.NbBundle;
32 final class DiscoveryExtractAction
extends AbstractAction {
34 private static final long serialVersionUID = 1L;
35 private final Collection<AbstractFile> files =
new HashSet<>();
43 DiscoveryExtractAction(Collection<AbstractFile> selectedFiles) {
44 super(NbBundle.getMessage(DiscoveryExtractAction.class,
"DiscoveryExtractAction.title.extractFiles.text"));
45 files.addAll(selectedFiles);
55 public void actionPerformed(ActionEvent e) {
56 ExtractActionHelper extractor =
new ExtractActionHelper();
57 extractor.extract(e, files);