Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » clickable and setContents
clickable and setContents [message #208380] Wed, 01 February 2006 21:06
Eclipse UserFriend
Originally posted by: ian.ianbull.com

I have a clickable figure on my canvas. I have an action listener on
the clickable, and one of the things the action listener does is reset
the model (i.e. sets a new contents). This works, and a whole new model
is displayed. The clickable is not displayed (because it is part of the
old model).

Everything works fine, until I try to do something with my mouse (cilck
on something, move it, etc...). the method draw2dBusy() always returns
true, and it seems that the inputEvent for any new mouse movement still
points to the old clickable. (The one that is not around). If I add a
new clickable to my new model, and interact with that (mouse over, mouse
click, etc...) then draw2D is no longer busy.

I don't know if this made much sense... but I was wondering if anyone
had any advice? Maybe I should not be setting contents in my action
listener. It seems to me that I am not letting the event finish properly.

Any advice would help,
Ian
Previous Topic:Connection Location
Next Topic:Visualization of Connections / Chopboxanchor and targt and source is the same node
Goto Forum:
  


Current Time: Thu Jan 16 16:44:02 GMT 2025

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

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

Back to the top