|How to call a handler from a popup menu or generate an ExecutionEvent? [message #735352]
||Tue, 11 October 2011 15:17
Registered: April 2011
I am not sure if this is the right forum but let's try.
I have implemented some functionality that is executed from top menu bar. These actions are triggered by handlers. For example, this is the way I have defined the actions in plugin.xml and they are working nicely:
I'd like to execute the same functionality from context popup menu, so I created an entry like this:
This works fine and the runWithEvent-method from myAction is executed. myAction implements IActionDelegate2.
1. Is there a way to execute a handler straight from popupMenu extension point?
2. If not. How can I generate an ExecutionEvent needed by the myHandler's (implements AbstactHandler) execute-method as a parameter?
I am using Papyrus if it matters.
[Updated on: Tue, 11 October 2011 15:20]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.09241 seconds