19 package org.sleuthkit.autopsy.actions;
 
   21 import java.awt.Desktop;
 
   23 import java.io.IOException;
 
   24 import java.util.logging.Level;
 
   25 import javax.swing.JOptionPane;
 
   26 import org.openide.DialogDisplayer;
 
   27 import org.openide.NotifyDescriptor;
 
   28 import org.openide.awt.ActionID;
 
   29 import org.openide.awt.ActionReference;
 
   30 import org.openide.awt.ActionRegistration;
 
   31 import org.openide.util.HelpCtx;
 
   32 import org.openide.util.NbBundle;
 
   33 import org.openide.util.actions.CallableSystemAction;
 
   41         displayName = 
"#CTL_OpenOutputFolder", iconInMenu = 
true, lazy=
true)
 
   42 @ActionReference(path = 
"Menu/Tools", position = 1850, separatorBefore = 1849)
 
   43 @ActionID(
id = 
"org.sleuthkit.autopsy.actions.OpenOutputFolderAction", category = 
"Help")
 
   55                 if (outputDir.exists() == 
false) {
 
   57                             = 
new NotifyDescriptor.Message(NbBundle.getMessage(
this.getClass(),
 
   58                                     "OpenOutputFolder.error1", outputDir.getAbsolutePath()),
 
   59                                     NotifyDescriptor.ERROR_MESSAGE);
 
   60                     DialogDisplayer.getDefault().notify(d);
 
   62                     Desktop.getDesktop().open(outputDir);
 
   65                 JOptionPane.showMessageDialog(null, NbBundle.getMessage(
this.getClass(), 
"OpenOutputFolder.noCaseOpen"));
 
   67         } 
catch (IOException ex) {
 
   68             logger.log(Level.WARNING, NbBundle.getMessage(
this.getClass(), 
"OpenOutputFolder.CouldNotOpenOutputFolder"), ex); 
 
   79         return HelpCtx.DEFAULT_HELP;
 
String getOutputDirectory()
static Case getCurrentCase()
synchronized static Logger getLogger(String name)
static boolean isCaseOpen()