19 package org.sleuthkit.autopsy.actions;
21 import java.util.Collection;
22 import java.util.concurrent.ExecutionException;
23 import java.util.logging.Level;
24 import javafx.application.Platform;
25 import javafx.scene.control.Alert;
26 import javax.swing.SwingWorker;
27 import org.openide.util.NbBundle;
28 import org.openide.util.Utilities;
52 if (null == instance) {
70 "# {0} - old tag name",
72 "ReplaceBlackboardArtifactTagAction.replaceTag.alert=Unable to replace tag {0} for artifact {1}."})
75 new SwingWorker<Void, Void>() {
78 protected Void doInBackground()
throws Exception {
83 logger.log(Level.SEVERE,
"Error replacing artifact tag. No open case found.", ex);
91 logger.log(Level.INFO,
"Replacing tag {0} with tag {1} for artifact {2}",
new Object[]{oldArtifactTag.getName().getDisplayName(), newTagName.getDisplayName(), oldArtifactTag.getContent().getName()});
97 logger.log(Level.SEVERE,
"Error replacing artifact tag", tskCoreException);
106 protected void done() {
110 }
catch (InterruptedException | ExecutionException ex) {
111 logger.log(Level.SEVERE,
"Unexpected exception while replacing artifact tag", ex);
123 Collection<? extends BlackboardArtifactTag> getTagsToReplace() {
BlackboardArtifact getArtifact()
static final Logger logger
TagsManager getTagsManager()
static synchronized ReplaceBlackboardArtifactTagAction getInstance()
static ReplaceBlackboardArtifactTagAction instance
ReplaceBlackboardArtifactTagAction()
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()
void replaceTag(BlackboardArtifactTag oldArtifactTag, TagName newTagName, String newComment)
static final long serialVersionUID