Page 1 of 1

Accessing the Unsaved Changes dialog within a plugin?

Posted: Mon Jul 28, 2014 4:31 pm
by Kit Strong
Before I go re-inventing the wheel I want to see if there is an easy way to leverage the existing unsaved changes dialog to check for unsaved modified files.
Before calling a checkin or an update I would like to prompt the user about any unsaved changes. It won't take too much effort to code this myself but I just wanted to see if there was a way to leverage what's already there.

Also, I have noticed if you have modifications int he Dita Map Editing area that file does not show up in the list of unsaved changes when exiting Oxygen.

-Kit Strong

Re: Accessing the Unsaved Changes dialog within a plugin?

Posted: Tue Jul 29, 2014 10:41 am
by alex_jitianu
Hello Kit,

Unfortunately that dialog is not reachable through the public API.
Also, I have noticed if you have modifications int he Dita Map Editing area that file does not show up in the list of unsaved changes when exiting Oxygen.
If there are modified resources both in the main editing area and in the DITA Map Manager, the user will be asked twice, each time with resources from one editing area. I agree that it would be best to ask the user just once...

Best regards,
Alex