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