Problem with link creation [message #216217] |
Fri, 23 January 2009 05:15  |
Eclipse User |
|
|
|
Hello,
In my model I've a node and a link that join nodes. Link has an attribute
"Type" with 3 diferents values, so I've created 3 diferent lines and
decorators in the gmfgraph, 3 diferent connections, constraints and
initial values, called by example ConnectionA, ConnectionB and ConnectionC.
The problem is when I join two nodes by ConnectionA, there is no problem,
initial values and decorators are correct. But when I join them by a
ConnectionB or ConnectionC, the link doesn't appear and the error log
shows an error. When I add a new node, the link appears, with the correct
initial value but with diferent decorators (the same decorator than
ConnectionA).
The mindmap example does that I want (without errors), but I've compared
both gmfgraph, gmfmap and I haven't seen diferences.
Anyone can tell me where is the problem?
Thanks.
|
|
|
|
Re: Problem with link creation [message #216284 is a reply to message #216238] |
Fri, 23 January 2009 06:59  |
Eclipse User |
|
|
|
Hello Robert,
I had the gmfmap in that order. Finally I've fixed the problem adding a
constraint in each link mapping, a constraint like "self.type =
Types::myType".
Thank you anyway :)
Robert Wloch wrote:
> There's just something that comes to my mind. When I tried to do the link
> mappings from the mindmap example in another project I had similar
> troubles. I figured the ORDER of the link mappings in your gmfmap is
> important if you're using a Feature Seq Initializer. If that's the case,
> try sorting the linkmappings by DECREASING value of your semantic EEnum.
|
|
|
Powered by
FUDForum. Page generated in 0.03610 seconds