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