>     * The default implementation just removes all listeners, and then
>     * re-initialises completely - this is method 1.

Unless this is done atomically, while locking the MDR event thread
from delivering any events, there is no guarantee that events won't be
"lost," or, more specifically, delivered while the intended
listener(s) aren't registered.  I'm pretty sure there are no
facilities to do this today, so this isn't happening and events are
getting lost (unless everything is being done on the MDR event thread
in which case there will be an implicit lock).

We've got minimal update computation code around for other purposes
which, given sets Old and New, computes Added and Removed.  I'm not
sure whether this would be easier than just removing individual
listeners for objects which are no longer contribute to the visual
representation and adding the new ones, but it might be another option
to consider.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to