(String title, String message)
| 1398 | } |
| 1399 | |
| 1400 | @Override |
| 1401 | public boolean showWarningConfirm(String title, String message) |
| 1402 | { |
| 1403 | Alert alert = GuiUtility.runOnJavaFXThreadNow(() -> new Alert(Alert.AlertType.CONFIRMATION)); |
| 1404 | alert.setTitle(title); |
| 1405 | alert.setContentText(message); |
| 1406 | Optional<ButtonType> buttonType = GuiUtility.runOnJavaFXThreadNow(alert::showAndWait); |
| 1407 | return buttonType.orElse(ButtonType.NO).equals(ButtonType.OK); |
| 1408 | } |
| 1409 | |
| 1410 | private boolean showMessageConfirm(String title, String message) |
| 1411 | { |
no test coverage detected