Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF command vs EMF Command
GMF command vs EMF Command [message #148865] Tue, 04 September 2007 13:31
Eclipse UserFriend
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
Previous Topic:Taipan Example Models
Next Topic:Feature Seq Initializer with a boolean attribute
Goto Forum:
  


Current Time: Sun Sep 01 07:04:35 GMT 2024

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

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

Back to the top