19 package org.sleuthkit.autopsy.actions;
 
   22 import java.awt.event.ActionEvent;
 
   23 import java.awt.event.ActionListener;
 
   25 import java.io.IOException;
 
   26 import java.util.logging.Level;
 
   27 import org.openide.DialogDisplayer;
 
   28 import org.openide.NotifyDescriptor;
 
   29 import org.openide.awt.ActionID;
 
   30 import org.openide.awt.ActionReference;
 
   31 import org.openide.awt.ActionRegistration;
 
   32 import org.openide.util.HelpCtx;
 
   33 import org.openide.util.NbBundle;
 
   34 import org.openide.util.actions.SystemAction;
 
   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;
 
void actionPerformed(ActionEvent e)
synchronized static Logger getLogger(String name)
static Desktop getDesktop()