(final AppEvent.OpenFilesEvent openFilesEvent)
| 83 | }); |
| 84 | application.setOpenFileHandler(new OpenFilesHandler() { |
| 85 | @Override |
| 86 | public void openFiles(final AppEvent.OpenFilesEvent openFilesEvent) { |
| 87 | new Thread(() -> { |
| 88 | if (waitForBase()) { |
| 89 | for (File file : openFilesEvent.getFiles()) { |
| 90 | System.out.println(file); |
| 91 | try { |
| 92 | Base.INSTANCE.handleOpen(file); |
| 93 | List<Editor> editors = Base.INSTANCE.getEditors(); |
| 94 | if (editors.size() == 2 && editors.get(0).getSketchController().isUntitled()) { |
| 95 | Base.INSTANCE.handleClose(editors.get(0)); |
| 96 | } |
| 97 | } catch (Exception e) { |
| 98 | throw new RuntimeException(e); |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | }).start(); |
| 103 | } |
| 104 | }); |
| 105 | application.setQuitHandler(new QuitHandler() { |
| 106 | @Override |
nothing calls this directly
no test coverage detected