From ac3ee19a1c3c4522b98ab1d02ab9a1686f5a90df Mon Sep 17 00:00:00 2001 From: Sophie Mori Date: Wed, 31 Aug 2016 12:51:16 -0400 Subject: [PATCH] Added action class, more to be modified --- .../autopsy/actions/AddTagAction.java | 7 ++++++ .../autopsy/actions/BookmarkFileAction.java | 23 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 Core/src/org/sleuthkit/autopsy/actions/BookmarkFileAction.java diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java index 7f4f813495..b5bb2b874a 100755 --- a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java +++ b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java @@ -142,6 +142,13 @@ abstract class AddTagAction extends AbstractAction implements Presenter.Popup { } }); add(tagAndCommentItem); + + // Create a new menu item for the Bookmark File action + /* JMenuItem bookmarkFileActionItem = new JMenuItem( + NbBundle.getMessage(this.getClass(), "AddTagAction.bookmarkFile")); + bookmarkFileActionItem.addActionListener((ActionEvent e) -> { + + });*/ } } } diff --git a/Core/src/org/sleuthkit/autopsy/actions/BookmarkFileAction.java b/Core/src/org/sleuthkit/autopsy/actions/BookmarkFileAction.java new file mode 100755 index 0000000000..2265626610 --- /dev/null +++ b/Core/src/org/sleuthkit/autopsy/actions/BookmarkFileAction.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package org.sleuthkit.autopsy.actions; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; + +/** + * + * @author smori + */ +public class BookmarkFileAction extends AbstractAction { + + + @Override + public void actionPerformed(ActionEvent e) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + +}