Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » One-to-many in GMF
One-to-many in GMF [message #202666] Wed, 20 August 2008 13:11 Go to next message
Eclipse UserFriend
Originally posted by: mikko.laakso.avoidspam.com

Hello all,

I would like to know if GMF supports one-to-many relations. I got an Ecore
metamodel, which allows them. I just use an object with "from" 0..1/"to"
0..* relations. I generate this as a connection, but when I try to use
this feature, new connection is created instead of new "to"-relation. So
what I get is two connections instead of one. I can use the property
editor and select another "to"-relation, but it doesn't show in the graph
- intuitively, I would expect an arrow drawn to the diagram.

--
Mikko Laakso
Re: One-to-many in GMF [message #202691 is a reply to message #202666] Wed, 20 August 2008 14:12 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Mikko,

Each connection (diagram link) can represent either "type link" (link with
associated domain node entity) or "reference link" (visualizing reference
from the domain model). So, looks like in your use case it is necessary to
patch generated code manually AFAIU.

-----------------
Alex Shatalin
Previous Topic:GMF UML Editor
Next Topic:Change backgroud and palet colors
Goto Forum:
  


Current Time: Mon Sep 23 23:31:59 GMT 2024

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

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

Back to the top