Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Links between the same Elements
Links between the same Elements [message #152372] Thu, 27 September 2007 14:10 Go to next message
Eclipse UserFriend
Originally posted by: elena.renzi.gmail.com

Hi,
in my ecore metamodel I have an Eclass Relationship with an Eattribute
card, that allows me to create relationship 1:n and relationship n:m
between Entities.
I want to represent relationship as links, so I created two link mapping
in my gmfmap model. Links mapping are equals except for a feature seq
initializer where I set the card(1:n) attribute. When I run the model I
have an error: the first link works fine, but the second create both the
relation 1:n and the relation n:m...Can someone tell me where I was wrong?
Thanks in advance
Elena Renzi
Re: Links between the same Elements [message #153086 is a reply to message #152372] Tue, 02 October 2007 17:24 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

So how do you suppose diagram editor will distinguish these links in
runtime? You've specified how to initialize them but not how to
distinguish them...

In TaiPan example I've modeled the same case - reliable and unreliable
routes. Same class, links differ by 'reliability' attribute value.
Feature sequence initializers are complemented by link constraints.

Elena Renzi wrote:
> Hi,
> in my ecore metamodel I have an Eclass Relationship with an Eattribute
> card, that allows me to create relationship 1:n and relationship n:m
> between Entities.
> I want to represent relationship as links, so I created two link mapping
> in my gmfmap model. Links mapping are equals except for a feature seq
> initializer where I set the card(1:n) attribute. When I run the model I
> have an error: the first link works fine, but the second create both the
> relation 1:n and the relation n:m...Can someone tell me where I was wrong?
> Thanks in advance
> Elena Renzi
>
Previous Topic:Affixed parent side - non-movable
Next Topic:How to present ParserEditStatus error validation messages for direct edits
Goto Forum:
  


Current Time: Sun Sep 01 07:44:06 GMT 2024

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

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

Back to the top