Go to the documentation of this file.
19package org.sleuthkit.autopsy.communications;
21import java.awt.event.ActionEvent;
22import javax.swing.ImageIcon;
23import org.openide.util.ImageUtilities;
24import org.openide.util.NbBundle;
30@NbBundle.Messages({
"PinAccountsAction.pluralText=Add Selected Accounts to Visualization",
31 "PinAccountsAction.singularText=Add Selected Account to Visualization"})
32final class PinAccountsAction extends AbstractCVTAction {
34 static private final ImageIcon ICON = ImageUtilities.loadImageIcon(
35 "org/sleuthkit/autopsy/communications/images/marker--plus.png",
false);
36 private static final String SINGULAR_TEXT = Bundle.PinAccountsAction_singularText();
37 private static final String PLURAL_TEXT = Bundle.PinAccountsAction_pluralText();
39 private static final PinAccountsAction instance =
new PinAccountsAction();
41 static PinAccountsAction getInstance() {
46 public void actionPerformed(ActionEvent event) {
47 CVTEvents.getCVTEventBus().post(
new CVTEvents.PinAccountsEvent(getSelectedAccounts(),
false));
51 protected String getActionDisplayName() {
52 return getSelectedAccounts().size() > 1 ? PLURAL_TEXT : SINGULAR_TEXT;
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.