MCPcopy Create free account
hub / github.com/PCGen/pcgen / showWarningConfirm

Method showWarningConfirm

code/src/java/pcgen/gui2/PCGenFrame.java:1400–1408  ·  view source on GitHub ↗
(String title, String message)

Source from the content-addressed store, hash-verified

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 {

Callers 2

showSavePartyChooserMethod · 0.95
loadCharacterFromFileMethod · 0.95

Calls 4

runOnJavaFXThreadNowMethod · 0.95
setTitleMethod · 0.65
equalsMethod · 0.65
orElseMethod · 0.65

Tested by

no test coverage detected