19 package org.sleuthkit.autopsy.datamodel.hosts;
 
   21 import java.awt.event.ActionEvent;
 
   22 import java.util.Collections;
 
   23 import java.util.logging.Level;
 
   24 import javax.swing.AbstractAction;
 
   25 import javax.swing.JOptionPane;
 
   26 import org.openide.util.NbBundle.Messages;
 
   27 import org.openide.windows.WindowManager;
 
   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}.",})
 
   58         super(person == null || person.
getName() == null
 
   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);
 
void actionPerformed(ActionEvent e)
PersonManager getPersonManager()
SleuthkitCase getSleuthkitCase()
AssociatePersonAction(Host host, Person person)
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()
void addHostsToPerson(Person person, List< Host > hosts)