Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Parameterized Actions?
Parameterized Actions? [message #355955] Tue, 28 July 2009 11:47
Eclipse UserFriend
Originally posted by:


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

Can you point me to some resource how to parameterize actions?

Previous Topic:GMF mapping model problem... can't see all nodes & links (domain model elements)
Next Topic:"Graphic is Disposed" Exception
Goto Forum:

Current Time: Mon Jun 01 14:31:30 GMT 2020

Powered by FUDForum. Page generated in 0.07326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top