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