PolygonDecoration: widget disposed [message #176383] |
Sun, 10 April 2005 01:10  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02135 seconds