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(value = {
"ResetAndPinAccountsAction.singularText=Visualize Only Selected Account",
31 "ResetAndPinAccountsAction.pluralText=Visualize Only Selected Accounts"})
32final class ResetAndPinAccountsAction extends AbstractCVTAction {
34 private static final ImageIcon ICON = ImageUtilities.loadImageIcon(
35 "org/sleuthkit/autopsy/communications/images/marker--pin.png",
false);
36 private static final String SINGULAR_TEXT = Bundle.ResetAndPinAccountsAction_singularText();
37 private static final String PLURAL_TEXT = Bundle.ResetAndPinAccountsAction_pluralText();
39 private static final ResetAndPinAccountsAction instance =
new ResetAndPinAccountsAction();
41 static ResetAndPinAccountsAction getInstance() {
46 public void actionPerformed(ActionEvent event) {
47 CVTEvents.getCVTEventBus().post(
new CVTEvents.PinAccountsEvent(getSelectedAccounts(),
true));
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.