Hi together,

thanks for all the background information you gave me. Thus I can see that the only way to really prevent my document from beeing closed is to register a terminate listener.

Please let me add some thougts:
- TerminateListener: the TerminateListener is added to the XDesktop. Thus this Listener has the focus on the XDesktop and not on XComponents (the documents) with just one exception: if a XComponent throws an CloseVetoException, the XDesktop cannot be terminated.

- CloseListener: this one is added to the XComponent and has thus focus on the Documents.

This definition above is what a developer normally thinks. If Andreas reports that some developers deal in a different way with the listener (meanwhile I do so too), that is not because of wrong thinking, but of dealing the situation on the only possible way.

Here the target of my opinion: a CloseVetoException should prevent closing the XComponent in any way -> at the moment this is not the case.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to