Applet Save dialog on close

Oxygen general issues.
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Applet Save dialog on close

Post by neon096 »

Is there any way to change the dialog message on the close? When we use the API AuthorAccess.getEditorAccess().close(true);

Currently we see

Save cms://127.0.0.1/document/access/46?

What we want is

Save <Title of document>?
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Applet Save dialog on close

Post by Radu »

Hi Neil,

You cannot take control over that message dialog.

But how about this?

When the user wants to close, you use the API to check if the editor is modified (AuthorEditorAccess.isModified()), if so, you show your own dialog.
If the user chooses to save, you use our API to save and then you use our API to close.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Re: Applet Save dialog on close

Post by neon096 »

Thanks,

Thats what I thought I would have to do.
Post Reply