Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [DataBinding] ComputedList refresh
[DataBinding] ComputedList refresh [message #534432] Wed, 19 May 2010 08:00 Go to next message
Matt Biggs is currently offline Matt BiggsFriend
Messages: 71
Registered: July 2009
Member
I have a TableViewer bound to a ComputedList which is calculated from a standard EMF EList.

At one point i have to execute a fairly large number of commands.

These are all wrapped up in a CompoundCommand however when each sub command executes it's causes the ComputedList to trigger and fires off rather alot of refresh events on the TableViewer.

Is there a way i can either disable notifications in EMF to prevent the databinding triggering, or a ComputedList that works with a delay to batch up the events a bit like EMF's AdapterFactoryContentProvider.ViewerRefresh does?

Any help would be much appreciated.

Re: [DataBinding] ComputedList refresh [message #534443 is a reply to message #534432] Wed, 19 May 2010 08:43 Go to previous message
Eclipse UserFriend
Originally posted by: Thomas.Kowatsch.ruag.com

Hi Matt.
There is a DelayedObservableValue class which does the same thing for
IObservableValues.
I did not find something similar for lists/sets/maps.
I didn't had a look into the implementation of DelayedObservableValue,
but you might be able to adapt that for lists/sets/maps?
I also think it would make sense to have a DelayedObservableList, etc.
integrated in the databinding in the framework.
Cheers.
--Thomas

Matt Biggs schrieb:
> I have a TableViewer bound to a ComputedList which is calculated from a
> standard EMF EList.
> At one point i have to execute a fairly large number of commands.
> These are all wrapped up in a CompoundCommand however when each sub
> command executes it's causes the ComputedList to trigger and fires off
> rather alot of refresh events on the TableViewer.
>
> Is there a way i can either disable notifications in EMF to prevent the
> databinding triggering, or a ComputedList that works with a delay to
> batch up the events a bit like EMF's
> AdapterFactoryContentProvider.ViewerRefresh does?
>
> Any help would be much appreciated.
>
>
Previous Topic:How to override destination location for emf
Next Topic:Default value of attribute with type enum
Goto Forum:
  


Current Time: Fri Apr 26 18:11:13 GMT 2024

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

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

Back to the top