connections problem [message #171931] |
Tue, 15 March 2005 19:19 |
Eclipse User |
|
|
|
Originally posted by: Ezequiel.hotmail.com
Hey,
I am migrating to gef 3.0.1 and I have a problem with the connections..
If the diagram is new, I can draw the nodes and I can connect the nodes
without any problem. But when I try to load a model, the connections are
not in the diagram any more... The model is the same, but I am not able to
see the links.
When I debug the application, I notice that the layers of the editor will
be refreshed..
The primary layer is a FreeFormLayer that contains the nodes that I had
drawed before.
The ConnectionLayer should contain the connectors but in this case is
Empty..
Why the connectors could not be added to the connectionLayer? How I should
add them in it?
I will appreciate any idea.
Regards
Ezequiel
|
|
|
|
Re: connections problem [message #172040 is a reply to message #172031] |
Wed, 16 March 2005 02:59 |
Eclipse User |
|
|
|
Originally posted by: ezequiel.hotmail.com
Nothing in the log file.. Not errors in the console..
My model is persisted using EMF.. and all the model information seems to
be there.. even the links..
The connections just appear the first time I draw them. if I save and
close, when I try to open again the diagram, the links are not there.
If I debug, the information loaded is ok, but the links seems not to be in
the ConnectionLayer..
> Anything in the error log? How is your model persisted?
> What if you create a new diagram, add some connections, save, close and
> reopen? Do the connections show up then?
> "Ezequiel" <Ezequiel@hotmail.com> wrote in message
> news:d17cfc$6e5$1@www.eclipse.org...
>> Hey,
>> I am migrating to gef 3.0.1 and I have a problem with the connections..
>> If the diagram is new, I can draw the nodes and I can connect the nodes
>> without any problem. But when I try to load a model, the connections are
>> not in the diagram any more... The model is the same, but I am not able to
>> see the links.
>>
>> When I debug the application, I notice that the layers of the editor will
>> be refreshed..
>> The primary layer is a FreeFormLayer that contains the nodes that I had
>> drawed before.
>> The ConnectionLayer should contain the connectors but in this case is
>> Empty..
>> Why the connectors could not be added to the connectionLayer? How I should
>> add them in it?
>>
>> I will appreciate any idea.
>> Regards
>> Ezequiel
>>
|
|
|
Re: connections problem [message #172056 is a reply to message #172040] |
Wed, 16 March 2005 03:56 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
Is your EditPart implementing getModelSourceConnections() and
getModelTargetConnections()?
"Ezequiel" <ezequiel@hotmail.com> wrote in message
news:d187et$v26$1@www.eclipse.org...
> Nothing in the log file.. Not errors in the console..
>
> My model is persisted using EMF.. and all the model information seems to
> be there.. even the links..
>
> The connections just appear the first time I draw them. if I save and
> close, when I try to open again the diagram, the links are not there.
>
> If I debug, the information loaded is ok, but the links seems not to be in
> the ConnectionLayer..
>
>
>
>
> > Anything in the error log? How is your model persisted?
>
> > What if you create a new diagram, add some connections, save, close and
> > reopen? Do the connections show up then?
>
> > "Ezequiel" <Ezequiel@hotmail.com> wrote in message
> > news:d17cfc$6e5$1@www.eclipse.org...
> >> Hey,
> >> I am migrating to gef 3.0.1 and I have a problem with the
connections..
> >> If the diagram is new, I can draw the nodes and I can connect the nodes
> >> without any problem. But when I try to load a model, the connections
are
> >> not in the diagram any more... The model is the same, but I am not able
to
> >> see the links.
> >>
> >> When I debug the application, I notice that the layers of the editor
will
> >> be refreshed..
> >> The primary layer is a FreeFormLayer that contains the nodes that I had
> >> drawed before.
> >> The ConnectionLayer should contain the connectors but in this case is
> >> Empty..
> >> Why the connectors could not be added to the connectionLayer? How I
should
> >> add them in it?
> >>
> >> I will appreciate any idea.
> >> Regards
> >> Ezequiel
> >>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06339 seconds