|Prevent adding more connections to the node [message #479989]
||Thu, 13 August 2009 11:24
Originally posted by: peterzoler.godon.de|
I would be grateful if someone could be able to help me.
In my model I have composition relationship (for instance called
"contains") between classes A and B: A can contain 0 or more B. That
automatically means that one B instance can belong only to one A instance.
Now in my GMF editor, I am actually able to draw that node A1 contains B1,
but also another node A2 contains B1. In output model, only the second
relationship stands, but on diagram, there are two. And when I close
diagram and open it again, only second connection is drawn. Is this some
kind of bug in GMF?
So, I want to prevent user to draw this second connection, or in other
words I want to check if the source node already has this kind of
connection attached to it, and if does, to dispose this second one. And
maybe here to throw some message to the user, but that's not too important.
Does anyone have clue how to do this and where?
I appreciate your time and help.
Powered by FUDForum
. Page generated in 0.05765 seconds