Ariel Constenla-Haile wrote:

> Hello,
> 
> thanks to Dietemar question concerning the complex toolbar, I read once 
> again the Dev's Guide chap. about add-ons/ProtocolHandler.
> 
> There is advised NOT to "simply return itself in the queryDispatch() 
> implementation. But ... to return specialized helper dispatch objects 
> instead of the protocol handler instance. This helps to decrease the 
> complexity of status updates."
> 
> 
> Is this still valid ("still" == the Dev's Guide is getting too old too 
> soon, there is a lot of old code there)? I ask because the plug-in, by 
> default, returns the protocol handler instance. So if is still true, I 
> will take this advise.

Well, keeping the dispatches separate first is a matter of style.
Listeners should be a private implementation detail of an object/Service
and shouldn't be exposed to introspection. If you don't care for this -
the code will become more complicated but from memory I don't recall a
case where it didn't work.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to