From 51cb77ce24f35917e4d88bd76ffc1aa99753ded4 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Fri, 17 Mar 2017 18:25:35 -0400 Subject: [PATCH] Implement Installer.closiong in Autopsy-Core NBM --- .../org/sleuthkit/autopsy/core/Installer.java | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/core/Installer.java b/Core/src/org/sleuthkit/autopsy/core/Installer.java index 7cb2032194..748870d783 100644 --- a/Core/src/org/sleuthkit/autopsy/core/Installer.java +++ b/Core/src/org/sleuthkit/autopsy/core/Installer.java @@ -30,6 +30,7 @@ import java.util.logging.Level; import javafx.application.Platform; import javafx.embed.swing.JFXPanel; import javax.swing.SwingWorker; +import org.openide.LifecycleManager; import org.openide.modules.ModuleInstall; import org.openide.util.NbBundle; import org.openide.windows.WindowManager; @@ -340,29 +341,6 @@ public class Installer extends ModuleInstall { logger.log(Level.INFO, "close()"); //NON-NLS -// new SwingWorker() { -// -// @Override -// protected Void doInBackground() throws Exception { -// Case.closeCurrentCase(); -// return null; -// } -// -// @Override -// protected void done() { -// try { -// get(); -// } catch (InterruptedException ex) { -// logger.log(Level.SEVERE, "Unexpected interrupt closing the current case", ex); -// } catch (ExecutionException ex) { -// logger.log(Level.SEVERE, "Error closing the current case", ex); -// MessageNotifyUtil.Message.error(Bundle.Installer_close_messageBox_caseCloseExceptionMessage(ex.getMessage())); -// } finally { -// WindowManager.getDefault().getMainWindow().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); -// } -// } -// }.execute(); -// } //exit JavaFx plat if (javaFxInit) { Platform.exit();