Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment question
Compartment question [message #235651] Wed, 08 July 2009 13:27 Go to next message
Sinisa is currently offline SinisaFriend
Messages: 10
Registered: July 2009
Junior Member
Greetings,
In my ecore model I have two elements on the same level. In other words,
both elements (A and B) have same parent.
In editor, object A must contain the object B. I created a compartment in
the node A for node B (in gmfgraph and gmfmap), but it simply not working.
Can I do it somehow? Any help is more then welcome.

Thanks.
Re: Compartment question [message #235728 is a reply to message #235651] Thu, 09 July 2009 10:48 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sinisa,

Currently to visualize B as a child element of A you have to create derived
feature in class A referencing B, re-generate code with EMF, implement this
feature in accordance and use it as containment one in NodeMapping for node
B.

-----------------
Alex Shatalin
Re: Compartment question [message #235828 is a reply to message #235728] Thu, 09 July 2009 14:48 Go to previous messageGo to next message
Sinisa is currently offline SinisaFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Alex,
Thanks for answer and for your time. I very appreciate that.
In the meantime, I was already tried this and its work :D !
But, there is one problem. This approach also changes my output model
(domain) file (node A is now really parent of node B).
Structure of the model file is specified by WfMC specification and I can't
change it.

Is there another way to present node B as a child of the node A (on
diagram), and that the output model remains unchanged.

Thanks & regards
Sinisa
Re: Compartment question [message #235875 is a reply to message #235828] Thu, 09 July 2009 18:22 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sinisa,

> Is there another way to present node B as a child of the node A (on
> diagram), and that the output model remains unchanged.
Only by modifying GMF-generated code - not so easy way...

-----------------
Alex Shatalin
Re: Compartment question [message #235901 is a reply to message #235875] Fri, 10 July 2009 09:07 Go to previous messageGo to next message
Sinisa is currently offline SinisaFriend
Messages: 10
Registered: July 2009
Junior Member
Thanks Alex,
Unfortunately, this is the only way for me.
I will try what you say, and if I made some progress, I will share them
with you.
If you can suggest me on which classes I must pay attention, I would be
very grateful.

Thanks & regards,
Sinisa.
Re: Compartment question [message #235929 is a reply to message #235901] Fri, 10 July 2009 10:39 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sinisa,

???CreateCommand generated for child element (B).
To simplify this process you have to create NodeMapping for B below A, ignore
validation errors and generate code, then modify it.

-----------------
Alex Shatalin
Previous Topic:Diagram Runtime Class must be a notation::Diagram or sub-class
Next Topic:WrappingLabel question
Goto Forum:
  


Current Time: Wed Apr 24 21:39:40 GMT 2024

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

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

Back to the top