19 package org.sleuthkit.autopsy.corecomponents;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import java.awt.Desktop;
24 import java.io.IOException;
25 import java.net.MalformedURLException;
26 import java.net.URISyntaxException;
28 import org.netbeans.core.actions.HTMLViewAction;
29 import org.openide.awt.ActionID;
30 import org.openide.awt.ActionReference;
31 import org.openide.awt.ActionReferences;
32 import org.openide.awt.ActionRegistration;
33 import org.openide.awt.HtmlBrowser;
34 import org.openide.util.NbBundle;
35 import org.openide.util.NbBundle.Messages;
37 import java.util.logging.Level;
45 id =
"org.sleuthkit.autopsy.corecomponents.OnlineHelpAction"
48 displayName =
"#CTL_OnlineHelpAction"
51 @ActionReference(path =
"Menu/Help", position = 0),
52 @ActionReference(path =
"Shortcuts", name =
"F1")
54 @Messages(
"CTL_OnlineHelpAction=Online Autopsy Documentation")
73 }
catch (URISyntaxException ex) {
74 Logger.log(Level.SEVERE,
"Unable to load Online Documentation", ex);
78 if (Desktop.isDesktopSupported()) {
79 Desktop desktop = Desktop.getDesktop();
82 }
catch (IOException ex) {
84 Logger.log(Level.SEVERE,
"Unable to launch the system browser", ex);
87 org.openide.awt.StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(HTMLViewAction.class,
"CTL_OpeningBrowser"));
89 HtmlBrowser.URLDisplayer.getDefault().showURL(uri.toURL());
90 }
catch (MalformedURLException ex) {
91 Logger.log(Level.SEVERE,
"Unable to launch the built-in browser", ex);
void actionPerformed(ActionEvent e)
synchronized static Logger getLogger(String name)