Create a link between a Node and another Link [message #190900] |
Wed, 04 June 2008 10:19 |
|
Hi, I want to create a link between a Node and another link, but when I
create this new link, it desappears from the diagram, although it was
created in the model.
I think it's a refresh problem, but I don't know where to change the code.
Can anybody helps me please?
Thanks!
Marc.
|
|
|
Re: Create a link between a Node and another Link [message #190910 is a reply to message #190900] |
Wed, 04 June 2008 11:05 |
|
I must indicate that the second link I create (the one who desappears),
doesn't represents an EObject: it represents a property!
Marc Gil wrote:
> Hi, I want to create a link between a Node and another link, but when I
> create this new link, it desappears from the diagram, although it was
> created in the model.
> I think it's a refresh problem, but I don't know where to change the code.
> Can anybody helps me please?
> Thanks!
> Marc.
|
|
|
|
Re: Create a link between a Node and another Link [message #191370 is a reply to message #190956] |
Fri, 06 June 2008 08:36 |
|
Hi Alex,
Well, I solved this problem. In the ???DiagramUpdater file, there exists a
lot of functions to return the ???ContainedLinks for every elements that
can be drawn in the diagram. By default, this method for the links returns
an EMPTY_LIST. I must to change this code like all the other elements, and
add the LinkDescriptors of these elements that has not represents a
REFERENCE (thanks Alex).
By this way, all the links between links and nodes are painted correctly.
Is possible that this was a GMF bug?
Thanks Alex!
Marc.
Alex Shatalin wrote:
> Hello Marc,
>> desappears), doesn't represents an EObject: it represents a property!
> Do you mean reference?
> This can be a problem. If you'd like to debug diagram updating process then
> start with "???CanonicalEditPolicy" class generated for your diagram element.
> -----------------
> Alex Shatalin
|
|
|
|
Powered by
FUDForum. Page generated in 0.03042 seconds