Go to the documentation of this file.
19package org.sleuthkit.autopsy.corecomponents;
21import org.sleuthkit.autopsy.coreutils.Desktop;
22import java.awt.event.ActionEvent;
23import java.awt.event.ActionListener;
25import java.io.IOException;
26import java.net.MalformedURLException;
27import java.nio.file.Paths;
28import org.netbeans.core.actions.HTMLViewAction;
29import org.openide.awt.ActionID;
30import org.openide.awt.ActionReference;
31import org.openide.awt.ActionReferences;
32import org.openide.awt.ActionRegistration;
33import org.openide.awt.HtmlBrowser;
34import org.openide.util.NbBundle;
35import org.openide.util.NbBundle.Messages;
36import java.util.logging.Level;
37import org.openide.modules.InstalledFileLocator;
38import org.sleuthkit.autopsy.coreutils.Logger;
45 id =
"org.sleuthkit.autopsy.corecomponents.OfflineHelpAction"
48 displayName =
"#CTL_OfflineHelpAction"
51 @ActionReference(path =
"Menu/Help", position = 1),
52 @ActionReference(path =
"Shortcuts", name =
"F2")
54@Messages(
"CTL_OfflineHelpAction=Offline Autopsy Documentation")
62 = org.sleuthkit.autopsy.coreutils.Logger.getLogger(
AboutWindowPanel.class.getName());
78 if (systemHelpFile ==
null) {
79 logger.log(Level.SEVERE,
"Unable to load Offline Documentation file at relative path: " +
HELP_REL_PATH);
87 desktop.
open(systemHelpFile);
89 }
catch (IOException ex) {
90 logger.log(Level.SEVERE,
"Unable to launch the system browser: "
91 + systemHelpFile, ex);
95 org.openide.awt.StatusDisplayer.getDefault().setStatusText(
96 NbBundle.getMessage(HTMLViewAction.class,
"CTL_OpeningBrowser"));
98 HtmlBrowser.URLDisplayer.getDefault().showURL(systemHelpFile.toURI().toURL());
99 }
catch (MalformedURLException ex) {
100 logger.log(Level.SEVERE,
"Unable to launch the built-in browser: "
101 + systemHelpFile, ex);
109 return InstalledFileLocator.getDefault().locate(
static final String HELP_REL_PATH
File getOfflineHelpFile()
static final String DOCS_FOLDER
static final String HELP_HTML_FILE
void actionPerformed(ActionEvent e)
static final Logger logger
static Desktop getDesktop()
static boolean isDesktopSupported()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.