Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » DIFFERENT TYPES OF RELATIONSHIPS (CONNECTIONS)
DIFFERENT TYPES OF RELATIONSHIPS (CONNECTIONS) [message #227092] Thu, 23 April 2009 09:58 Go to next message
Juan is currently offline JuanFriend
Messages: 29
Registered: July 2009
Junior Member
Hi all, I'm a begginner in GMF.

I have the next simple structure in my ecore to model classes &
relationships among them:

MyDomain:
|
|-- classes: MyClassType
|-- relations: MyRelationType

MyClass->MyClassType
|
|-- subTypes --> MyClasstType
|-- supertypes --> MyClassType

MyRelation-->MyRelationType
|-- classes --> MyClassType


I'd like to have a diagram in which I can draw classes, and
relationships among them as usually but besides I need to draw the
supertypes and subtypes of a class as other type of relationship and I
can't do it using only gmfmap with the above ecore. The problem is that
it only lets me use MyRelation.classes as Source/Target feature but what
I want is MyClass.subtypes and MyClass.supertypes to be a new connection
over the canvas using ,of course, another tool from the palette and
another figure from gmfgraph.

Is it possible without writting custom code in the EditParts classes or
without changing my model structure?

All answers will be happyly received. Thanks a lot to everyone who can
give me a tip/clue to solve this.
Re: DIFFERENT TYPES OF RELATIONSHIPS (CONNECTIONS) [message #227144 is a reply to message #227092] Thu, 23 April 2009 13:29 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Juan Miguel Ávila Nieto,

Your situation looks similar to the Ecore diagram, EClassESuperTypes link.
Try checking this example and compare .gmfmap used there with your one.

-----------------
Alex Shatalin
Previous Topic:.gmfgen differences between M5 and M6, now things are deprecated, but what is the replacement?
Next Topic:Label on canvas does not display after upgrade
Goto Forum:
  


Current Time: Fri Apr 26 07:49:08 GMT 2024

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

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

Back to the top