From 3d219d29477cf04a2a01a955656880a1ad529f3c Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Fri, 9 Oct 2015 11:36:03 -0400 Subject: [PATCH] Backwards compatibility for DeleteBlackboardArtifactTagAction, DeleteContentTagAction --- .../DeleteBlackboardArtifactTagAction.java | 25 +++++++++++++++++++ .../actions/DeleteContentTagAction.java | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java index f6885c9313..8874391aa6 100755 --- a/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java +++ b/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java @@ -79,4 +79,29 @@ public class DeleteBlackboardArtifactTagAction extends AbstractAction { } }).start(); } + + /** + * Deprecated, use actionPerformed() instead. + * + * @param event The event associated with the action. + * + * @deprecated + */ + @Deprecated + protected void doAction(ActionEvent event) { + actionPerformed(event); + } + + /** + * Deprecated, does nothing. The TagManager methods to create, update or + * delete tags now do notify the case that there is a tag change. The case + * then publishes an event that triggers a refresh of the tags sub-tree in + * the tree view. + * + * @deprecated + */ + @Deprecated + protected void refreshDirectoryTree() { + } + } diff --git a/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java index 12e2fea0f6..8adfcd9a58 100755 --- a/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java +++ b/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java @@ -77,4 +77,29 @@ public class DeleteContentTagAction extends AbstractAction { } }).start(); } + + /** + * Deprecated, use actionPerformed() instead. + * + * @param event The event associated with the action. + * + * @deprecated + */ + @Deprecated + protected void doAction(ActionEvent event) { + actionPerformed(event); + } + + /** + * Deprecated, does nothing. The TagManager methods to create, update or + * delete tags now do notify the case that there is a tag change. The case + * then publishes an event that triggers a refresh of the tags sub-tree in + * the tree view. + * + * @deprecated + */ + @Deprecated + protected void refreshDirectoryTree() { + } + }