mpvreddy123 / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

Make Save and Save as... enableable #457

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As my Plugin modifies a diagram rather drastically, I found it useful
to disable saving while and after certain operations are performed. In
particular, it is necessary to prevent the user from accidentally
overwriting the original diagram.

To accomplish this, I modified the Save-Plugin (file.js), to accept an
Oryx-Event to disable/enable Save and Save as... .If these Events are
never given, the functionality of the plugin remains unchanged.
In particular I added an enabling condition for the buttons, two
attributes and a method listening to the event.

Attached is a patch for file.js containing the changes.

Original issue reported on code.google.com by falko.ko...@googlemail.com on 9 Sep 2010 at 12:57

Attachments: