@FXML private void handleExitAction() { if (EngineFactory.getEngine(EngineFactory.DEFAULT) != null) { CloseFileTask.initiateShutdown(); } else { Platform.exit(); } }
@FXML private void handleCloseAction() { if (EngineFactory.getEngine(EngineFactory.DEFAULT) != null) { CloseFileTask.initiateFileClose(); } }