Go to the documentation of this file.
19package org.sleuthkit.autopsy.discovery.ui;
21import java.awt.Component;
22import javax.swing.ImageIcon;
23import javax.swing.JButton;
24import javax.swing.SwingUtilities;
25import org.openide.awt.ActionID;
26import org.openide.awt.ActionReference;
27import org.openide.awt.ActionReferences;
28import org.openide.awt.ActionRegistration;
29import org.openide.util.HelpCtx;
30import org.openide.util.NbBundle;
31import org.openide.util.actions.CallableSystemAction;
32import org.openide.util.actions.Presenter;
33import org.sleuthkit.autopsy.casemodule.Case;
34import org.sleuthkit.autopsy.coreutils.ThreadConfined;
40@ActionID(category =
"Tools",
id =
"org.sleuthkit.autopsy.newpackage.OpenDiscoveryAction")
41@ActionReferences(value = {
42 @ActionReference(path =
"Menu/Tools", position = 105),
43 @ActionReference(path =
"Toolbars/Case", position = 105)})
44@ActionRegistration(displayName =
"#CTL_OpenDiscoveryAction", lazy =
false)
45@NbBundle.Messages({
"CTL_OpenDiscoveryAction=Discovery"})
48 private static final String
DISPLAY_NAME = Bundle.CTL_OpenDiscoveryAction();
67 SwingUtilities.invokeLater(() -> {
68 final DiscoveryDialog discDialog = DiscoveryDialog.getDiscoveryDialogInstance();
69 discDialog.cancelSearch();
70 DiscoveryUiUtils.displayErrorMessage(discDialog);
71 discDialog.setVisible(
true);
83 ImageIcon icon =
new ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/images/discovery-icon-24.png"));
96 super.setEnabled(value);
107 return HelpCtx.DEFAULT_HELP;
static boolean isCaseOpen()
static final long serialVersionUID
final JButton toolbarButton
Component getToolbarPresenter()
void setEnabled(boolean value)
static final String DISPLAY_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.