Accessing the Unsaved Changes dialog within a plugin?

Post here questions and problems related to oXygen frameworks/document types.
Kit Strong
Posts: 13
Joined: Mon Oct 07, 2013 7:19 pm

Accessing the Unsaved Changes dialog within a plugin?

Post 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
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Accessing the Unsaved Changes dialog within a plugin?

Post 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
Post Reply