Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » recursive relation in same class
recursive relation in same class [message #1034262] Fri, 05 April 2013 08:06
Simon Zutterman is currently offline Simon ZuttermanFriend
Messages: 28
Registered: October 2012
Junior Member

My domain model has 1 class: Goal

I want to be able to draw a recursive link 'Conflict' between 2 Goals, but if i for example draw GoalA --> GoalB, i would like the editor to also automatically map GoalA <-- GoalB, and the editor would stop me from being able to draw a GoalA <-- GoalB link, since it would already exists.

I tried to do it with 2 references (Conflict1 & Conflict2) marked as eOpposites but I can't get that to work. The editor maps the opposite relation, but off course sees the two references as different.

For example:
if i draw GoalA -conflict1-> GoalB,
it also maps GoalA <-conflict2- GoalB,

but then it still allows me to create a GoalB -conflict1-> GoalA,
also mapping the recursive GoalB <-conflict2- GoalA

What i want is a single recursive relation: GoalA -conflict-> GoalB,
where it would automatically map GoalB <-conflict- GoalA

This would be very useful as it will also display both directions of a conflict relation in the properties view, instead of in 2 fields if you have 2 references as eopposite.

Thanks in advance for any help!

[Updated on: Fri, 05 April 2013 08:22]

Report message to a moderator

Previous Topic:Multiple Connection Labels
Next Topic:Scrolling diagram nodes into view
Goto Forum:

Current Time: Sun Jun 24 19:07:03 GMT 2018

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

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

Back to the top