Parameterized Actions? [message #355955] |
Tue, 28 July 2009 11:47 |
Eclipse User |
|
|
|
Originally posted by: tobk42.gmx.de
Hello,
I've created a number of custom actions for my editor, similar to the
example shown in the Tutorial in the GMF Wiki. Now I have several
action classes which are very similar, i.e. insert element X/Y/Z after a
given element, one for each element type. Each class extends an
abstract superclass, merely implementing a getter method. It would be
much more elegant, if that one field required for distinguishing which
element to insert could be set in the action description in the
properties file.
As in the example, my actions are declared an a
org.eclipse.ui.popupMenus extension. I tried adding a 'class' element to
the action, which can hold 'parameters', but without success. I also
could not find documentation for that attribute, so maybe I'm using it
wrong.
Can you point me to some resource how to parameterize actions?
Regards,
Tobias
|
|
|
Powered by
FUDForum. Page generated in 0.03786 seconds