Go to the documentation of this file.
19package org.sleuthkit.autopsy.actions;
21import org.sleuthkit.autopsy.coreutils.Desktop;
22import java.awt.event.ActionEvent;
23import java.awt.event.ActionListener;
25import java.io.IOException;
26import java.util.logging.Level;
27import org.openide.DialogDisplayer;
28import org.openide.NotifyDescriptor;
29import org.openide.awt.ActionID;
30import org.openide.awt.ActionReference;
31import org.openide.awt.ActionRegistration;
32import org.openide.util.HelpCtx;
33import org.openide.util.NbBundle;
34import org.openide.util.actions.SystemAction;
35import org.sleuthkit.autopsy.coreutils.Logger;
36import org.sleuthkit.autopsy.coreutils.PlatformUtil;
38@ActionID(category =
"Tools",
id =
"org.sleuthkit.autopsy.actions.OpenPythonModulesFolderAction")
39@ActionRegistration(displayName =
"#CTL_OpenPythonModulesFolderAction", lazy =
false)
40@ActionReference(path =
"Menu/Tools", position = 1400)
50 File directory =
new File(pythonModulesDirPath);
51 if (directory.exists()) {
54 throw new IOException(String.format(
"%s does not exist", pythonModulesDirPath));
56 }
catch (IOException ex) {
57 String msg = String.format(
"Error creating File object for %s", pythonModulesDirPath);
58 logger.log(Level.SEVERE, msg, ex);
59 DialogDisplayer.getDefault().notify(
new NotifyDescriptor.Message(
61 NotifyDescriptor.ERROR_MESSAGE));
72 return HelpCtx.DEFAULT_HELP;
static final String ACTION_NAME
void actionPerformed(ActionEvent e)
static final Logger logger
static Desktop getDesktop()
synchronized static Logger getLogger(String 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.