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]