|Actions & Parameters [message #492752]
||Wed, 21 October 2009 15:34
| Maurice O'Connor
Registered: July 2009
I have a class MyAction, extending Action, which takes a parameter, so the constructor looks like MyAction(SomeParam foo).
This action is on the context menu of a node on a graph. So I select the node, right click and it appears listed. So far so good.
However, I cannot work out how to execute it - how do I pass the parameter into the constructor? (it is available after querying the current selection).
I understand commands are the new way to do things, but this is old code and I must make do with an action for now.
[Updated on: Wed, 21 October 2009 15:34]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01748 seconds