Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel.hosts;
21import java.awt.event.ActionEvent;
22import java.util.Collections;
23import java.util.logging.Level;
24import javax.swing.AbstractAction;
25import javax.swing.JOptionPane;
26import org.openide.util.NbBundle.Messages;
27import org.openide.windows.WindowManager;
28import org.sleuthkit.autopsy.casemodule.Case;
29import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
30import org.sleuthkit.datamodel.TskCoreException;
31import org.sleuthkit.autopsy.coreutils.Logger;
32import org.sleuthkit.datamodel.Host;
33import org.sleuthkit.datamodel.Person;
34import org.sleuthkit.datamodel.TskCoreException;
41 "RemoveParentPersonAction_menuTitle=Remove from Person ({0})",
42 "RemoveParentPersonAction_unknownPerson=Unknown Person",
43 "RemoveParentPersonAction_onError_title=Error Removing Host from Person",
45 "RemoveParentPersonAction_onError_description=There was an error removing person from host: {0}.",})
60 super(Bundle.RemoveParentPersonAction_menuTitle(
62 ? Bundle.RemoveParentPersonAction_unknownPerson() :
person.getName()));
72 String hostName = this.host ==
null || this.host.getName() ==
null ?
"" : this.host.getName();
73 logger.log(Level.WARNING, String.format(
"Unable to remove parent from host: %s", hostName), ex);
75 JOptionPane.showMessageDialog(
76 WindowManager.getDefault().getMainWindow(),
77 Bundle.RemoveParentPersonAction_onError_description(hostName),
78 Bundle.RemoveParentPersonAction_onError_title(),
79 JOptionPane.WARNING_MESSAGE);
SleuthkitCase getSleuthkitCase()
static Case getCurrentCaseThrows()
synchronized static Logger getLogger(String name)
static final Logger logger
RemoveParentPersonAction(Host host, Person person)
void actionPerformed(ActionEvent e)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.