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;
41 "DeleteBlackboardArtifactTagAction.deleteTag=Remove Selected Tag(s)",
43 "DeleteBlackboardArtifactTagAction.unableToDelTag.msg=Unable to delete tag {0}.",
44 "DeleteBlackboardArtifactTagAction.tagDelErr=Tag Deletion Error"
50 private static final long serialVersionUID = 1L;
52 "DeleteBlackboardArtifactTagAction.deleteTag");
60 if (null == instance) {
72 final Collection<? extends BlackboardArtifactTag> selectedTags = Utilities.actionsGlobalContext().lookupAll(BlackboardArtifactTag.class);
74 for (BlackboardArtifactTag tag : selectedTags) {
79 SwingUtilities.invokeLater(() -> {
80 JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
81 NbBundle.getMessage(this.getClass(),
82 "DeleteBlackboardArtifactTagAction.unableToDelTag.msg",
84 NbBundle.getMessage(
this.getClass(),
85 "DeleteBlackboardArtifactTagAction.tagDelErr"),
86 JOptionPane.ERROR_MESSAGE);
DeleteBlackboardArtifactTagAction()
static DeleteBlackboardArtifactTagAction instance
static synchronized DeleteBlackboardArtifactTagAction getInstance()
void actionPerformed(ActionEvent event)
TagsManager getTagsManager()
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()