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.autopsy.coreutils.Logger;
31import org.sleuthkit.datamodel.Host;
32import org.sleuthkit.datamodel.Person;
33import org.sleuthkit.datamodel.TskCoreException;
39 "AssociatePersonAction_unknownPerson=Unknown Person",
40 "AssociatePersonAction_onError_title=Error Associating Host with Person",
43 "AssociatePersonAction_onError_description=There was an error associating host {0} with person {1}.",})
59 ? Bundle.RemoveParentPersonAction_unknownPerson()
71 String hostName = this.host ==
null || this.host.getName() ==
null ?
"" : this.host.getName();
72 String personName = this.person ==
null || this.person.getName() ==
null ?
"" : this.person.getName();
73 logger.log(Level.WARNING, String.format(
"Unable to remove parent from host: %s with person: %s", hostName, personName), ex);
75 JOptionPane.showMessageDialog(
76 WindowManager.getDefault().getMainWindow(),
77 Bundle.AssociatePersonAction_onError_description(hostName, personName),
78 Bundle.AssociatePersonAction_onError_title(),
79 JOptionPane.WARNING_MESSAGE);
SleuthkitCase getSleuthkitCase()
static Case getCurrentCaseThrows()
synchronized static Logger getLogger(String name)
AssociatePersonAction(Host host, Person person)
void actionPerformed(ActionEvent e)
static final Logger logger
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.