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;
43 "DeleteContentTagAction.deleteTag=Remove Selected Tag(s)",
45 "DeleteContentTagAction.unableToDelTag.msg=Unable to delete tag {0}.",
46 "DeleteContentTagAction.tagDelErr=Tag Deletion Error"
52 private static final long serialVersionUID = 1L;
54 "DeleteContentTagAction.deleteTag");
62 if (null == instance) {
74 final Collection<? extends ContentTag> selectedTags = Utilities.actionsGlobalContext().lookupAll(ContentTag.class);
76 for (ContentTag tag : selectedTags) {
80 if(imageTag != null) {
87 SwingUtilities.invokeLater(() -> {
88 JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(),
89 NbBundle.getMessage(this.getClass(),
90 "DeleteContentTagAction.unableToDelTag.msg",
92 NbBundle.getMessage(
this.getClass(),
"DeleteContentTagAction.tagDelErr"),
93 JOptionPane.ERROR_MESSAGE);
110 actionPerformed(event);
static synchronized DeleteContentTagAction getInstance()
void doAction(ActionEvent event)
void refreshDirectoryTree()
void actionPerformed(ActionEvent e)
static< T > void deleteTag(ContentViewerTag< T > contentViewerTag)
static< T > ContentViewerTag< T > getTag(ContentTag contentTag, Class< T > clazz)
TagsManager getTagsManager()
static DeleteContentTagAction instance
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()