Actions & Parameters [message #492752] |
Wed, 21 October 2009 11:34  |
Eclipse User |
|
|
|
Hi!
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.
Thanks!
Maurice
[Updated on: Wed, 21 October 2009 11:34] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.63373 seconds