(String title, String htmlString)
| 1594 | } |
| 1595 | |
| 1596 | private static void showLicenseDialog(String title, String htmlString) |
| 1597 | { |
| 1598 | GuiAssertions.assertIsNotJavaFXThread(); |
| 1599 | if (htmlString == null) |
| 1600 | { |
| 1601 | htmlString = LanguageBundle.getString("in_licNoInfo"); //$NON-NLS-1$ |
| 1602 | } |
| 1603 | Alert alert = RememberingChoiceDialog.create( |
| 1604 | title, |
| 1605 | "", |
| 1606 | htmlString, |
| 1607 | "in_licShowOnLoad", |
| 1608 | PCGenSettings.OPTIONS_CONTEXT, |
| 1609 | PCGenSettings.OPTION_SHOW_LICENSE |
| 1610 | ); |
| 1611 | GuiUtility.runOnJavaFXThreadNow(alert::showAndWait); |
| 1612 | } |
| 1613 | |
| 1614 | private static void showMatureDialog(final String text) |
| 1615 | { |
no test coverage detected