Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » One-to-many in GMF
One-to-many in GMF [message #202666] Wed, 20 August 2008 09: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 10:12 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 16:17:59 EDT 2025

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

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

Back to the top