Applet Save dialog on close

<oXygen/> general issues.

Applet Save dialog on close

Postby neon096 » Wed Jul 11, 2012 9:47 am

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>?
neon096
 
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Re: Applet Save dialog on close

Postby Radu » Wed Jul 11, 2012 10:26 am

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, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 2014
Joined: Fri Jul 09, 2004 5:18 pm

Re: Applet Save dialog on close

Postby neon096 » Wed Jul 11, 2012 10:30 am

Thanks,

Thats what I thought I would have to do.
neon096
 
Posts: 45
Joined: Wed May 23, 2012 11:20 am


Return to Other Issues

Who is online

Users browsing this forum: No registered users and 0 guests