Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Management of several child class and superclass as child too
Management of several child class and superclass as child too [message #191901] Tue, 10 June 2008 09:39 Go to next message
Eclipse UserFriend
Hello,

I'm a beginner with GMF, so perhaps this subject is trivial. Anyway, I
have detected this behavior and I wonder if it's a bug or not.
I have in the emf model this use case :

A containment feature B

B
C -> B
D -> B

within the mapping model I try to define A with childs : B, C, D
but GMF doesn't consider C and D (no code generation to manage these
specialized node, edirPart for example of creation command).
The behavior is when the user wants to create a C node (emf model seems to
be correct, C exist), the figure used is B figure. And in teh compartment
dedicated to B nodes on the A node, we have a troubleshoot, the C node
doesn't appear imediately, but it's necessary to have a B node available
and move it in the compartment to seen the C node arising.

Does soem body have an idea ?

The solution is to have always specific childs defined in the gmfmap,
never the super class! Is it normal ?

Thanks
Re: Management of several child class and superclass as child too [message #191906 is a reply to message #191901] Tue, 10 June 2008 09:49 Go to previous message
Eclipse UserFriend
Hello Benoit,

> within the mapping model I try to define A with childs : B, C, D
I think you have to adorn mapping for B with the following OCL constraint:

(not oclIsKindOf(<modelPackage>::C)) and (not oclIsKindOf(<modelPackage>::D))

-----------------
Alex Shatalin
Previous Topic:XML translator
Next Topic:[Announce] GMF 2.1.0 I200806100911 is available
Goto Forum:
  


Current Time: Thu Oct 23 03:45:00 EDT 2025

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

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

Back to the top