117118119120121122123124125126127128
t = get(); } catch (Exception e) { t = e; } if (t != null) { ExceptionDialog ed = new ExceptionDialog(null, t); ed.setVisible(true); System.exit(-1); } if (documents.isEmpty() && filesToLoad.isEmpty()) { instance.createNewDocument();
149150151152153154155156157158159160
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { public void uncaughtException(Thread t, final Throwable e) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { ExceptionDialog d = new ExceptionDialog(null, e); d.setVisible(true); } }); } }); }
411412413414415416417418419420
addDocument(doc); NodeBoxMenuBar.addRecentFile(file); return doc; } catch (RuntimeException e) { logger.log(Level.SEVERE, "Error while loading " + file, e); ExceptionDialog d = new ExceptionDialog(null, e); d.setVisible(true); return null; } }