mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Merge pull request #1048 from sidheshenator/doxygen-user-docs
Doxygen user docs
This commit is contained in:
commit
821888993e
@ -8,9 +8,7 @@
|
||||
|
||||
|
||||
|
||||
<target name="javahelp">
|
||||
|
||||
</target>
|
||||
|
||||
<!-- Verify that the TSK_HOME env variable is set -->
|
||||
<target name="findTSK">
|
||||
|
@ -3,7 +3,7 @@ OpenIDE-Module: org.sleuthkit.autopsy.core/10
|
||||
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/core/Bundle.properties
|
||||
OpenIDE-Module-Layer: org/sleuthkit/autopsy/core/layer.xml
|
||||
OpenIDE-Module-Implementation-Version: 12
|
||||
OpenIDE-Module-Requires: org.openide.windows.WindowManager, org.netbeans.api.javahelp.Help
|
||||
OpenIDE-Module-Requires: org.openide.windows.WindowManager
|
||||
AutoUpdate-Show-In-Client: true
|
||||
AutoUpdate-Essential-Module: true
|
||||
OpenIDE-Module-Install: org/sleuthkit/autopsy/core/Installer.class
|
||||
|
@ -24,15 +24,6 @@
|
||||
<implementation-version/>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.netbeans.modules.javahelp</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>1</release-version>
|
||||
<specification-version>2.27.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.netbeans.modules.options.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
|
@ -27,6 +27,8 @@ Format_OperatingSystem_Value={0} version {1} running on {2}
|
||||
LBL_Copyright=<div style\="font-size\: 12pt; font-family\: Verdana, 'Verdana CE', Arial, 'Arial CE', 'Lucida Grande CE', lucida, 'Helvetica CE', sans-serif; ">Autopsy™ is a digital forensics platform based on The Sleuth Kit™ and other tools. <br><ul><li>General Information: <a style\="color\: \#1E2A60;" href\="http\://www.sleuthkit.org">http\://www.sleuthkit.org</a>.</li><li>Training: <a style\="color\: \#1E2A60;" href\="http://www.basistech.com/autopsy-training">http://www.basistech.com/autopsy-training</a></li><li>Commercial Support: <a style\="color\: \#1E2A60;" href\="http://www.basistech.com/digital-forensics/autopsy/support/">http://www.basistech.com/digital-forensics/autopsy/support/</a></li></ul>Copyright © 2003-2014. </div>
|
||||
URL_ON_IMG=http://www.sleuthkit.org/
|
||||
|
||||
URL_ON_HELP=http://sleuthkit.org/autopsy/docs/user-docs/3.1/
|
||||
|
||||
LBL_Close=Close
|
||||
DataContentViewerString.copyMenuItem.text=Copy
|
||||
DataContentViewerHex.copyMenuItem.text=Copy
|
||||
|
@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
* Copyright 2011-2014 Basis Technology Corp.
|
||||
* Contact: carrier <at> sleuthkit <dot> org
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.sleuthkit.autopsy.corecomponents;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.Desktop;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URI;
|
||||
import org.netbeans.core.actions.HTMLViewAction;
|
||||
import org.openide.awt.ActionID;
|
||||
import org.openide.awt.ActionReference;
|
||||
import org.openide.awt.ActionReferences;
|
||||
import org.openide.awt.ActionRegistration;
|
||||
import org.openide.awt.HtmlBrowser;
|
||||
import org.openide.util.NbBundle;
|
||||
import org.openide.util.NbBundle.Messages;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* Implements a hyperlink to the Online Documentation.
|
||||
*/
|
||||
@ActionID(
|
||||
category = "Help",
|
||||
id = "org.sleuthkit.autopsy.corecomponents.OnlineHelpAction"
|
||||
)
|
||||
@ActionRegistration(
|
||||
displayName = "#CTL_OnlineHelpAction"
|
||||
)
|
||||
@ActionReferences({
|
||||
@ActionReference(path = "Menu/Help", position = 0),
|
||||
@ActionReference(path = "Shortcuts", name = "F1")
|
||||
})
|
||||
@Messages("CTL_OnlineHelpAction=Online Documentation")
|
||||
public final class OnlineHelpAction implements ActionListener {
|
||||
|
||||
private URI uri;
|
||||
private static final Logger Logger = org.sleuthkit.autopsy.coreutils.Logger.getLogger(AboutWindowPanel.class.getName());
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
// TODO implement action body
|
||||
viewOnlineHelp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the Online Documentation in the system browser. If not
|
||||
* available, displays it in the built-in OpenIDE HTML Browser.
|
||||
*/
|
||||
private void viewOnlineHelp() {
|
||||
try {
|
||||
uri = new URI(NbBundle.getMessage(OnlineHelpAction.class, "URL_ON_HELP"));
|
||||
} catch (URISyntaxException ex) {
|
||||
Logger.log(Level.SEVERE, "Unable to load Online Documentation", ex);
|
||||
}
|
||||
if (uri != null) {
|
||||
// Display URL in the SYstem browser
|
||||
if (Desktop.isDesktopSupported()) {
|
||||
Desktop desktop = Desktop.getDesktop();
|
||||
try {
|
||||
desktop.browse(uri);
|
||||
} catch (IOException ex) {
|
||||
// TODO Auto-generated catch block
|
||||
Logger.log(Level.SEVERE, "Unable to launch the system browser", ex);
|
||||
}
|
||||
} else {
|
||||
org.openide.awt.StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(HTMLViewAction.class, "CTL_OpeningBrowser")); //NON-NLS
|
||||
try {
|
||||
HtmlBrowser.URLDisplayer.getDefault().showURL(uri.toURL());
|
||||
} catch (MalformedURLException ex) {
|
||||
Logger.log(Level.SEVERE, "Unable to launch the built-in browser", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -15,15 +15,6 @@
|
||||
<specification-version>1.24.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.netbeans.modules.javahelp</code-name-base>
|
||||
<build-prerequisite/>
|
||||
<compile-dependency/>
|
||||
<run-dependency>
|
||||
<release-version>1</release-version>
|
||||
<specification-version>2.22.1</specification-version>
|
||||
</run-dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<code-name-base>org.netbeans.modules.options.api</code-name-base>
|
||||
<build-prerequisite/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user