Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » connections problem
connections problem [message #171931] Tue, 15 March 2005 19:19 Go to next message
Eclipse UserFriend
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 #172031 is a reply to message #171931] Wed, 16 March 2005 00:35 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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 #172040 is a reply to message #172031] Wed, 16 March 2005 02:59 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
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
> >>
>
>
Previous Topic:A question about lisence
Next Topic:Can't see connections with Mac OS X
Goto Forum:
  


Current Time: Fri Apr 19 22:37:09 GMT 2024

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

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

Back to the top