Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF wizards and non containment references
GMF wizards and non containment references [message #550790] Wed, 04 August 2010 11:18
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
Hi,
we are using GMF with several diagrams that are linked to classes belonging to one single model.
In practice our ecore contains both a main hierarchy of model classes and several hierarchies of classes that are used by the various GMF diagrams.
Each class used to represent a graphical object has references to the underlying model classes.
The top diagram class has containment references to the diagram object classes, while the latter have non-containment references to model classes (since a model class may be shared by more diagram class).
This way, however, the GMF wizards fails to generate the correct graph, tools and mapping files.
The workaround that we've found is the following:
first we remove the non-containment references to the model classes in order to make the GMF wizards work correctly;
then we re-add the references to the model classes and all is working all right.

Anyway this seems to be just a workaround, so we end up with the following questions:

1) is there a better pattern to follow in the scenario we described above (several diagrams sharing the same model classes)?

2) is there a way to avoid the detach/re-attach of the non-containment references to the model classes in order to make the GMF wizards work correctly?

Thank you
Regards

Vincenzo
Previous Topic:Can't layout polygons
Next Topic:Exception when combining gmftool, gmfgraph and ecore files to gmfmap
Goto Forum:
  


Current Time: Wed Sep 25 07:29:53 GMT 2024

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

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

Back to the top