19 package org.sleuthkit.autopsy.actions;
21 import java.awt.event.ActionEvent;
22 import java.util.Collection;
23 import java.util.logging.Level;
24 import javax.swing.AbstractAction;
25 import javax.swing.JOptionPane;
26 import javax.swing.SwingUtilities;
27 import org.openide.util.NbBundle;
28 import org.openide.util.Utilities;
29 import org.openide.windows.WindowManager;
40 "DeleteContentTagAction.deleteTag=Remove Selected Tag(s)",
42 "DeleteContentTagAction.unableToDelTag.msg=Unable to delete tag {0}.",
43 "DeleteContentTagAction.tagDelErr=Tag Deletion Error"
49 private static final long serialVersionUID = 1L;
51 "DeleteContentTagAction.deleteTag");
59 if (null == instance) {
71 final Collection<? extends ContentTag> selectedTags = Utilities.actionsGlobalContext().lookupAll(ContentTag.class);
73 for (ContentTag tag : selectedTags) {
78 SwingUtilities.invokeLater(() -> {
79 JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
80 NbBundle.getMessage(this.getClass(),
81 "DeleteContentTagAction.unableToDelTag.msg",
83 NbBundle.getMessage(
this.getClass(),
"DeleteContentTagAction.tagDelErr"),
84 JOptionPane.ERROR_MESSAGE);
101 actionPerformed(event);
static synchronized DeleteContentTagAction getInstance()
void doAction(ActionEvent event)
void refreshDirectoryTree()
void actionPerformed(ActionEvent e)
TagsManager getTagsManager()
static DeleteContentTagAction instance
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()