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 » Thu Aug 09, 2012 5:24 pm

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: 7094
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 » Thu Aug 09, 2012 5:34 pm

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 » Fri Aug 10, 2012 12:04 pm

Hello,

thanks you for your answer.
regards

Post Reply