19 package org.sleuthkit.autopsy.communications;
21 import java.util.Collection;
22 import javax.swing.AbstractAction;
23 import javax.swing.ImageIcon;
24 import javax.swing.JMenuItem;
25 import org.openide.util.Utilities;
26 import org.openide.util.actions.Presenter;
33 abstract class AbstractCVTAction
extends AbstractAction implements Presenter.Popup {
40 Collection<? extends AccountDeviceInstanceKey> getSelectedAccounts() {
41 return Utilities.actionsGlobalContext().lookupAll(AccountDeviceInstanceKey.class);
45 public JMenuItem getPopupPresenter() {
46 JMenuItem presenter =
new JMenuItem(
this);
47 presenter.setText(getActionDisplayName());
48 presenter.setIcon(getIcon());
57 abstract String getActionDisplayName();
64 abstract ImageIcon getIcon();