*/
protected void warnIfUnsavedChanges()
{
- if (!changed)
+ // BH 2018 no warning in JavaScript TODO
+
+ if (/** @j2sNative true || */ !changed)
{
return;
}
if (ColourSchemes.getInstance().nameExists(name))
{
- int reply = JvOptionPane.showInternalConfirmDialog(Desktop.desktop,
+ // BH 2018 SwingJS bypasses this question with YES_OPTION
+ int reply = /** @j2sNative 0 && */ JvOptionPane.showInternalConfirmDialog(Desktop.desktop,
MessageManager.formatMessage(
"label.colour_scheme_exists_overwrite", new Object[]
{ name, name }),