I already had an XDispatchProvider implementation for my Java component which worked. Now I'm trying to move the DispatchProvider/Dispatch into its own class instead of implementing it in the "root" class Editor (the one with WeakBase, XServiceInfo). So all I did was create a new class and copy everything concerning the DispatchProvider to the new class Dispatcher.

public class Dispatcher implements XDispatchProvider, XDispatch,
       XInitialization {
...

Then I changed the ProtocolHandler to point to the new Dispatcher.

<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <node oor:name="HandlerSet">
       <node oor:name="org.openoffice.addon.Dispatcher" oor:op="replace">
           <prop oor:name="Protocols" oor:type="oor:string-list">
               <value>org.openoffice.addon.Editor:*</value>
           </prop>
       </node>
   </node>
</oor:component-data>

When I startup the menu items stay grayed out. Isn't it possible to have the Dispatchstuff in a special class? What am I missing here?

thanks for some input
André

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

Reply via email to