Go to the documentation of this file.
19package org.sleuthkit.autopsy.communications;
21import java.util.Collection;
22import java.util.stream.Collectors;
23import javax.swing.AbstractAction;
24import javax.swing.ImageIcon;
25import javax.swing.JMenuItem;
26import org.openide.util.Utilities;
27import org.openide.util.actions.Presenter;
28import org.sleuthkit.datamodel.AccountDeviceInstance;
35abstract class AbstractCVTAction
extends AbstractAction implements Presenter.Popup {
42 Collection<? extends AccountDeviceInstance> getSelectedAccounts() {
43 return Utilities.actionsGlobalContext().lookupAll(AccountDeviceInstanceKey.class)
45 .map((adiKey -> adiKey.getAccountDeviceInstance()))
46 .collect(Collectors.toSet());
50 public JMenuItem getPopupPresenter() {
51 JMenuItem presenter =
new JMenuItem(
this);
52 presenter.setText(getActionDisplayName());
53 presenter.setIcon(getIcon());
62 abstract String getActionDisplayName();
69 abstract ImageIcon getIcon();
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.