Page 1 of 1

How do I catch a close event?

Posted: Fri Aug 29, 2014 1:24 am
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

Re: How do I catch a close event?

Posted: Fri Aug 29, 2014 8:18 am
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