Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » PolygonDecoration: widget disposed
PolygonDecoration: widget disposed [message #176383] Sun, 10 April 2005 01:10 Go to next message
Eclipse UserFriend
Originally posted by: angelaheenan.eircom.net

Hey everyone,

(Here's hoping I figure this out 5mins after I post :) )

I have the current situation.

1. I have a hashMap I iterate through it.
2. Create a new PolylineConnection at each iteration.

conn = new PolylineConnection();
conn.setTargetDecoration(new PolygonDecoration());
conn.setSourceAnchor(new ChopboxAnchor(source));
conn.setTargetAnchor(new ChopboxAnchor(target));

3. I go to iterate through the hashMap again.

4. This time there is an error. I get an "Unhandled
event loop exception Reason: Widget is disposed"

Now if I comment out the line which adds the decoration
I do not get the above error. I have tried creating the
decoration outside the while loop, this only creates one
decoration and only adds it to the very last
PolylineConnection.I need to create a new decoration for
each PolyConnection.

Anyone any ideas what's going on? What am I missing??

Thanks for reading.
A.
Re: PolygonDecoration: widget disposed [message #176417 is a reply to message #176383] Sun, 10 April 2005 16:24 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
What is the context? That is where are you doing this and why? Also,
please provide the stack trace.

"Angi" <angelaheenan@eircom.net> wrote in message
news:da9ea732ffb15ddaf9c14380ecc0c2e3$1@www.eclipse.org...
> Hey everyone,
>
> (Here's hoping I figure this out 5mins after I post :) )
>
> I have the current situation.
>
> 1. I have a hashMap I iterate through it.
> 2. Create a new PolylineConnection at each iteration.
>
> conn = new PolylineConnection();
> conn.setTargetDecoration(new PolygonDecoration());
> conn.setSourceAnchor(new ChopboxAnchor(source));
> conn.setTargetAnchor(new ChopboxAnchor(target));
>
> 3. I go to iterate through the hashMap again.
>
> 4. This time there is an error. I get an "Unhandled
> event loop exception Reason: Widget is disposed"
>
> Now if I comment out the line which adds the decoration
> I do not get the above error. I have tried creating the
> decoration outside the while loop, this only creates one
> decoration and only adds it to the very last
> PolylineConnection.I need to create a new decoration for
> each PolyConnection.
>
> Anyone any ideas what's going on? What am I missing??
>
> Thanks for reading.
> A.
>
Previous Topic:How to limit the number of connections?
Next Topic:expand/collapse the Container EditPart in "flow" example
Goto Forum:
  


Current Time: Tue Apr 23 15:30:43 GMT 2024

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

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

Back to the top