Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » compartment in gmf
compartment in gmf [message #232819] Sun, 07 June 2009 10:49 Go to next message
mohammad  is currently offline mohammad Friend
Messages: 2
Registered: July 2009
Junior Member
Hi
I just wanted to know if it's possible to create a compartment in GMF
under the condition that the relation between the two classes is not
really containment.
If it is possible I would be thankful to have anybody to tell me how to do
it or to give me a clue about it
Tanx in advance
Re: compartment in gmf [message #232883 is a reply to message #232819] Mon, 08 June 2009 10:08 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello mohammad,

It is possible, but you have to modify generated code.
Currently existing .gmfmap editor does not allow you to specify non-containment
reference as a "containment feature" for child node reference, but you should
be able to do it using text editor..
Then you "hack" .gmfmap model this way you can ignore all warning and generate
gmfgen model /code from it. In the end you have to modify ???CreateCommand
generated for these child elements to store newly created elements in a proper
containment feature in addition to non-containment you've specified above.

-----------------
Alex Shatalin
Previous Topic:OVERRIDING ECLIPSE MENUS
Next Topic:Problem with link
Goto Forum:
  


Current Time: Fri Apr 19 06:33:34 GMT 2024

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

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

Back to the top