19 package org.sleuthkit.autopsy.datamodel.hosts;
21 import java.awt.Frame;
22 import java.beans.PropertyChangeEvent;
23 import java.util.EnumSet;
24 import javax.swing.Action;
25 import org.openide.awt.ActionID;
26 import org.openide.awt.ActionRegistration;
27 import org.openide.util.HelpCtx;
28 import org.openide.util.NbBundle;
29 import org.openide.util.NbBundle.Messages;
30 import org.openide.util.actions.CallableSystemAction;
31 import org.openide.windows.WindowManager;
37 @ActionID(category =
"Case",
id =
"org.sleuthkit.autopsy.datamodel.hosts.OpenHostsAction")
38 @ActionRegistration(displayName =
"#CTL_OpenHosts", lazy =
false)
40 "CTL_OpenHosts=Manage Hosts",})
43 private static final long serialVersionUID = 1L;
49 putValue(Action.NAME, Bundle.CTL_OpenHosts());
50 this.setEnabled(
false);
52 setEnabled(null != evt.getNewValue());
58 Frame parent = WindowManager.getDefault().getMainWindow();
60 dialog.setResizable(
false);
61 dialog.setLocationRelativeTo(parent);
62 dialog.setVisible(
true);
67 @NbBundle.Messages(
"OpenHostsAction_displayName=Hosts")
69 return Bundle.OpenHostsAction_displayName();
74 return HelpCtx.DEFAULT_HELP;
static void addEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)