19 package org.sleuthkit.autopsy.casemodule;
 
   21 import java.util.Collection;
 
   22 import java.util.Iterator;
 
   23 import java.util.logging.Level;
 
   24 import org.openide.util.Lookup;
 
   43         if (instance == null) {
 
   45                 if (instance == null) {
 
   56         if (startupWindowToUse == null) {
 
   58             Collection<? extends StartupWindowInterface> startupWindows
 
   61             int windowsCount = startupWindows.size();
 
   62             if (windowsCount > 2) {
 
   63                 logger.log(Level.WARNING, 
"More than 2 (" + windowsCount + 
") start up windows discovered, will use the first custom one"); 
 
   64             } 
else if (windowsCount == 1) {
 
   65                 startupWindowToUse = startupWindows.iterator().next();
 
   66                 logger.log(Level.INFO, 
"Will use the default startup window: " + startupWindowToUse.toString()); 
 
   69                 Iterator<? extends StartupWindowInterface> it = startupWindows.iterator();
 
   70                 while (it.hasNext()) {
 
   73                         startupWindowToUse = window;
 
   74                         logger.log(Level.INFO, 
"Will use the custom startup window: " + startupWindowToUse.toString()); 
 
   80                 if (startupWindowToUse == null) {
 
   81                     logger.log(Level.SEVERE, 
"Unexpected error, no custom startup window found, using the default"); 
 
   92         if (startupWindowToUse != null) {
 
   93             startupWindowToUse.
open();
 
   99         if (startupWindowToUse != null) {
 
  100             startupWindowToUse.
close();
 
static volatile StartupWindowProvider instance
volatile StartupWindowInterface startupWindowToUse
synchronized static Logger getLogger(String name)
static StartupWindowProvider getInstance()
static final Logger logger