From bb0669439e49d17d118660ca7678f3d5972a8cc7 Mon Sep 17 00:00:00 2001 From: bancika Date: Thu, 17 Sep 2020 10:07:43 +0200 Subject: [PATCH] more loging at start --- diylc/diylc-swing/src/org/diylc/DIYLCStarter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/diylc/diylc-swing/src/org/diylc/DIYLCStarter.java b/diylc/diylc-swing/src/org/diylc/DIYLCStarter.java index aa7c76c4..c79e6ebd 100644 --- a/diylc/diylc-swing/src/org/diylc/DIYLCStarter.java +++ b/diylc/diylc-swing/src/org/diylc/DIYLCStarter.java @@ -173,22 +173,29 @@ public class DIYLCStarter { System.exit(0); } } + + LOG.info("Creating the main frame..."); MainFrame mainFrame = new MainFrame(); Presenter presenter = mainFrame.getPresenter(); + + LOG.info("Main frame created."); // mainFrame.setLocationRelativeTo(null); if (splash == null) { LOG.warn("Splash screen could not be initialized", splashException); } else { + LOG.info("Hiding splash screen..."); splash.setVisible(false); splash.dispose(); + LOG.info("Done hiding splash screen."); } mainFrame.setVisible(true); // assign open file handler for Mac if (Utils.isMac()) { + LOG.info("Setting up open file handler for Mac..."); SwingUtilities.invokeLater(() -> { Application.getApplication().setOpenFileHandler((AppEvent.OpenFilesEvent ofe) -> { List files = ofe.getFiles(); @@ -198,6 +205,7 @@ public class DIYLCStarter { presenter.loadProjectFromFile(filePath); } } + LOG.info("Finished setting up open file handler for Mac."); }); }); }