GMF command vs EMF Command [message #148865] |
Tue, 04 September 2007 13:31 |
Eclipse User |
|
|
|
Originally posted by: mat.loo.gmail.com
I have modified my EMF commands (accessed through the AdapterEditingDomain
or through the AdapterFactory) to add specific behaviors (for instance,
when I add a new objet to a list -AddCommand-, I automatically set one of
its properties according to the context of creation -in fact, an index
that derives from attributes of already existing elements in the father
list).
When I use GMF and the palette to create the same object (graphically,
through the mouse), it is not an emf.AddCommand that is used but a
gmf.CreateElementCommand.
This difference is the same between emf.SetCommand and gmf.SetValueCommand
that perform the same code for the "execute".
Why these 2 commands are not the same commands ?
How should I do to apply my changes done in my EMF Commands so that GMF
uses the same behaviours ? I would like not to duplicate my code and I was
expected a "global" framework (in fact the EMF.edit framework) could be
used in both cases.
Thx
|
|
|
Powered by
FUDForum. Page generated in 0.03544 seconds