How can I do to know if the action was canceled by user ?

Post here questions and problems related to oXygen frameworks/document types.
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

How can I do to know if the action was canceled by user ?

Post by sebastienlavandier »

Hello,

During a Drag'nDrop action where I use insertXMLFragmentSchemaAware(), a dialog box is open and offers some solutions. When I click on the cancel buton, an AuthorOperationException is thrown. But how can I do to know if the action was canceled by user ?

Do you have some ideas ?
Thanks in advance for your answers.
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I do to know if the action was canceled by user ?

Post by Radu »

Hi,

I think that if the user cancels the operation, the exception will be an instance of AuthorOperationStoppedByUserException.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

Re: How can I do to know if the action was canceled by user ?

Post by sebastienlavandier »

Hello,

thanks you for your answer.
regards
Post Reply