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 @NbBundle.Messages({
"DiscoveryExtractAction.title.extractFiles.text=Extract File"})
44 DiscoveryExtractAction(Collection<AbstractFile> selectedFiles) {
45 super(Bundle.DiscoveryExtractAction_title_extractFiles_text());
46 files.addAll(selectedFiles);
56 public void actionPerformed(ActionEvent e) {
57 ExtractActionHelper extractor =
new ExtractActionHelper();
58 extractor.extract(e, files);