Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to deal with model event efficiently
how to deal with model event efficiently [message #244173] Tue, 08 July 2008 14:54 Go to next message
memorialday is currently offline memorialdayFriend
Messages: 37
Registered: July 2009
Member
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?
Re: how to deal with model event efficiently [message #244230 is a reply to message #244173] Fri, 11 July 2008 15:22 Go to previous messageGo to next message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
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.

Regards

Laurent Marchal.
Re: how to deal with model event efficiently [message #244261 is a reply to message #244230] Sat, 12 July 2008 06:32 Go to previous message
Eclipse UserFriend
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 ...

Regards
Malai
"Laurent Marchal" <lmarchal@smaeur.com> wrote in message
news:g57tr9$fo7$1@build.eclipse.org...
> 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.
>
> Regards
>
> Laurent Marchal.
Previous Topic:Show a simple program on an editor page
Next Topic:Unable to select editpart by clicking
Goto Forum:
  


Current Time: Thu Apr 25 10:17:20 GMT 2024

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

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

Back to the top