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.netbeans.spi.sendopts.OptionProcessor;
25 import org.openide.util.Lookup;
26 import org.openide.util.NbBundle;
52 if (instance == null) {
54 if (instance == null) {
65 if (startupWindowToUse == null) {
70 if(defaultArg != null) {
75 logger.log(Level.INFO,
"Running from command line");
88 Collection<? extends StartupWindowInterface> startupWindows
91 int windowsCount = startupWindows.size();
92 if (windowsCount == 1) {
93 startupWindowToUse = startupWindows.iterator().next();
94 logger.log(Level.INFO,
"Will use the default startup window: " + startupWindowToUse.toString());
95 }
else if (windowsCount == 2) {
97 Iterator<? extends StartupWindowInterface> it = startupWindows.iterator();
98 while (it.hasNext()) {
101 startupWindowToUse = window;
102 logger.log(Level.INFO,
"Will use the custom startup window: " + startupWindowToUse.toString());
108 Iterator<? extends StartupWindowInterface> it = startupWindows.iterator();
109 while (it.hasNext()) {
111 if (!window.getClass().getCanonicalName().startsWith(
"org.sleuthkit.autopsy")) {
112 startupWindowToUse = window;
113 logger.log(Level.INFO,
"Will use the custom startup window: " + startupWindowToUse.toString());
119 if (startupWindowToUse == null) {
120 logger.log(Level.SEVERE,
"Unexpected error, no startup window chosen, using the default");
134 NbBundle.getMessage(SolrNotConfiguredDialog.class,
"SolrNotConfiguredDialog.EmptyKeywordSearchHostName"));
136 SolrNotConfiguredDialog dialog =
new SolrNotConfiguredDialog();
137 dialog.setVisible(
true);
152 if(processor != null) {
165 if(processor != null) {
173 if (startupWindowToUse != null) {
174 startupWindowToUse.
open();
180 if (startupWindowToUse != null) {
181 startupWindowToUse.
close();
static boolean runningWithGUI
StartupWindowInterface getStartupWindow()
static volatile StartupWindowProvider instance
static boolean getIsMultiUserModeEnabled()
String getDefaultArgument()
boolean isRunFromCommandLine()
boolean isRunningFromCommandLine()
String getDefaultArgument()
volatile StartupWindowInterface startupWindowToUse
static void error(String title, String message)
synchronized static Logger getLogger(String name)
static StartupWindowProvider getInstance()
static String getIndexingServerHost()
static final Logger logger