19 package org.sleuthkit.autopsy.actions;
21 import java.awt.event.ActionEvent;
22 import java.util.Collection;
23 import java.util.HashSet;
24 import java.util.concurrent.ExecutionException;
25 import java.util.logging.Level;
26 import javafx.application.Platform;
27 import javafx.scene.control.Alert;
28 import javax.swing.AbstractAction;
29 import javax.swing.JOptionPane;
30 import javax.swing.SwingUtilities;
31 import javax.swing.SwingWorker;
32 import org.openide.util.NbBundle;
33 import org.openide.util.Utilities;
46 "DeleteContentTagAction.deleteTag=Delete Tag",
48 "DeleteContentTagAction.unableToDelTag.msg=Unable to delete tag {0}.",
49 "DeleteContentTagAction.tagDelErr=Tag Deletion Error"
55 private static final long serialVersionUID = 1L;
57 "DeleteContentTagAction.deleteTag");
65 if (null == instance) {
77 final Collection<? extends ContentTag> selectedTags = Utilities.actionsGlobalContext().lookupAll(ContentTag.class);
79 for (ContentTag tag : selectedTags) {
82 }
catch (TskCoreException ex) {
84 SwingUtilities.invokeLater(() -> {
85 JOptionPane.showMessageDialog(null,
86 NbBundle.getMessage(
this.getClass(),
87 "DeleteContentTagAction.unableToDelTag.msg",
89 NbBundle.getMessage(
this.getClass(),
"DeleteContentTagAction.tagDelErr"),
90 JOptionPane.ERROR_MESSAGE);
107 actionPerformed(event);
static synchronized DeleteContentTagAction getInstance()
void doAction(ActionEvent event)
void refreshDirectoryTree()
void actionPerformed(ActionEvent e)
TagsManager getTagsManager()
static DeleteContentTagAction instance
static Case getCurrentCase()
synchronized static Logger getLogger(String name)