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;
 
   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(
 
   61                 person == null || person.
getName() == null
 
   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);
 
RemoveParentPersonAction(Host host, Person person)
void removeHostsFromPerson(Person person, List< Host > hosts)
PersonManager getPersonManager()
SleuthkitCase getSleuthkitCase()
void actionPerformed(ActionEvent e)
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()