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