Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel.hosts;
21import java.awt.event.ActionEvent;
22import java.util.Collections;
24import java.util.logging.Level;
25import javax.swing.AbstractAction;
26import javax.swing.JMenu;
27import javax.swing.JMenuItem;
28import org.openide.util.NbBundle.Messages;
29import org.openide.util.actions.Presenter;
30import org.sleuthkit.autopsy.casemodule.Case;
31import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
32import org.sleuthkit.autopsy.coreutils.Logger;
33import org.sleuthkit.datamodel.Host;
34import org.sleuthkit.datamodel.TskCoreException;
41 "MergeHostMenuAction_menuTitle=Merge Into Other Host",})
55 this.sourceHost = host;
59 @SuppressWarnings(
"NoopMethodInAbstractClass")
65 JMenu menu =
new JMenu(Bundle.MergeHostMenuAction_menuTitle());
68 List<Host> otherHosts = Collections.emptyList();
73 logger.log(Level.WARNING,
"Error getting hosts for case.", ex);
78 if (otherHosts.isEmpty()) {
79 menu.setEnabled(
false);
81 menu.setEnabled(
true);
83 .filter(p -> p !=
null && p.getName() !=
null)
84 .sorted((a, b) -> a.getName().compareToIgnoreCase(b.getName()))
SleuthkitCase getSleuthkitCase()
static Case getCurrentCaseThrows()
synchronized static Logger getLogger(String name)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.