Hello,
how do you programmatically set the WB model state to "changed", so that the title bar shows an asterisk and when exiting WB a dialog would appear to warn the user about this?
There's
grt.modules.Workbench.hasUnsavedChanges()
see
https://pasteboard.co/I5roVwW.png
... but there's no setter:
[pre]
23:21:56 [ERR][ python]: error calling jpa_export.export_jpa_annotated_classesTraceback (most recent call last):
23:21:56 [ERR][ python]: File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\jpa_export_plugin_grt.py", line 417, in export_jpa_annotated_classes
23:21:56 [ERR][ python]: grt.modules.Workbench.setUnsavedChanges(True)
23:21:56 [ERR][ python]: AttributeError: unknown attribute 'setUnsavedChanges'
[/pre]
Can this be achieved? Why is there no setter?
Thanks
Karsten