Hi, thanks, you were right, i haven't added the ProtocolHandler to the central registration, in the manifest file of the jar. The problem is that now that i added it, it occurs an error and the open office just close. I believe that's something on my ProtocolHandler, but i found nothing. I'm just tell the protocolhandler to print the url, when he's called. Could anyone just take a look in the class?
Regards, Joel Filipe Antunes Cordeiro [EMAIL PROTECTED] [EMAIL PROTECTED] 2008/10/11 Ariel Constenla-Haile <[EMAIL PROTECTED]> > Hi Joel, > > Joel Cordeiro escribió: > >> Hello again, >> >> i already put it working with the job service. Now i'm having a bug, that >> i >> doesn't understand. Nothing new appears in the context menu, put i'm >> putting >> them there, and the method that does it is running, and receivies a >> XContextMenu that is not null. Follow is my method that adds the entries >> to >> the context menu, followed by the output of the method. Hope someone could >> help me. >> > > I can see two reasons: > > * if your commands are disabled, they will be removed from the context > menu. A cause for they not being enabled may be that you are not > implementing well the ProtocolHandler: it must return a valid dispatch > object for the commands that belong to the items you add (supposing of > course, you had first set commands in the ActionTrigger) > > * in your context menu interceptor implementation, > notifyContextMenuExecute() must return > ContextMenuInterceptorAction.EXECUTE_MODIFIED or > ContextMenuInterceptorAction.CONTINUE_MODIFIED [a good practice will be > this last one, so that you let other extensions modify the context menu] > > So check: > > * that you have set commands in the ActionTriggers > * that you implemented correctly a Protocolhandler for these commands > * that you return correctly in notifyContextMenuExecute() > > > > Regards > Ariel. > > > > -- > Ariel Constenla-Haile > La Plata, Argentina > > [EMAIL PROTECTED] > http://www.ArielConstenlaHaile.com.ar/ooo/ > > > > "Aus der Kriegsschule des Lebens > - Was mich nicht umbringt, > macht mich härter." > Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
