How do I catch a close event?

Oxygen general issues.
dvezina
Posts: 23
Joined: Sat Mar 08, 2014 12:10 am

How do I catch a close event?

Post by dvezina »

Hello,
I'm using an WSEditorListener to override the method editorAboutToBeSavedVeto.

I need to do something similar with a close. I need to perform an action before the document closes. How do I catch this event?

Thanks
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: How do I catch a close event?

Post by Radu »

Hi,

Presuming you are working with a Workspace Access plugin for Oxygen standalone you can add a "WSEditorChangeListener" listener to the plugin workspace which has the callback: "ro.sync.exml.workspace.api.listeners.WSEditorChangeListener.editorAboutToBeClosed".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply