|Re: how to deal with model event efficiently [message #244261 is a reply to message #244230]
||Sat, 12 July 2008 06:32
Originally posted by: annamalai.ancitconsulting.com|
I also would image that you woudl have to handle it in your own way ...
probably have a batch notification mechanism for GEF Editors .. but from GEF
Framework i dont expect a mechanism for this ...
"Laurent Marchal" <email@example.com> wrote in message
> thinktwice wrote:
>> as you know there are some cases that the way how we deal with model
>> event in editor make big difference, for example when we select hundreds
>> of object in the editor and move them ,each model object will trigger an
>> event that tells outside it has been changed, in this case how could the
>> editor deal with these events efficiently? is there any good pattern in
>> gef to deal with this problem?
> I have this issue too, for example when a have 1000 figures shown in the
> editor and i want to remove them, this operation is really slow because
> each removed figure sent events. So i added a setSendEvents(boolean) which
> increase the speed of adding/removing a lot of nodes.
> I am really interested in patterns in GEF too, to deal with complex events
> machanisms. But i think you will have to deal with this yourself since it
> really depends on what you need to do.
> Laurent Marchal.
Powered by FUDForum
. Page generated in 0.01791 seconds