Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Databinding] Soliciting feedback on my aggregation library
[Databinding] Soliciting feedback on my aggregation library [message #629012] Sun, 26 September 2010 00:51 Go to next message
Anthony Juckel is currently offline Anthony JuckelFriend
Messages: 19
Registered: July 2009
Junior Member
I've written a quick add-on to the Properties-based databinding API to
allow for aggregate properties (e.g. sum, average, min, max). I'd
appreciate feedback regarding it's general usability as well as API design.

Quick blog post:
http://sputteringdigitized.blogspot.com/2010/09/eclipse-data binding-aggregation.html

Github project:
http://github.com/ajuckel/net.juckel.rcp.databinding.aggrega te

Anthony W. Juckel
Re: [Databinding] Soliciting feedback on my aggregation library [message #630504 is a reply to message #629012] Sun, 03 October 2010 12:57 Go to previous messageGo to next message
Ovidio Mallo is currently offline Ovidio MalloFriend
Messages: 35
Registered: July 2009
Member
Hi Anthony,

first of all, thanks a lot for your interest in databinding and for your
effort in designing your own code in such a way that it might be used to
extend the databinding framework itself!

I only had a look at your blog post for now and since I will be on
holiday for two weeks I might not get into having a closer look at the
actual implementation. However, at first sight, it seems to me that what
you're doing might be related to the following bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=300043

The bug proposes some sort of "reducer API" which I think could also be
used to implement the type of aggregations you are proposing (e.g. as a
special implementation of a ListReducer). There's a tentative patch by
Matthew Hall attached to the bug so you might want to have a look at it.

In any case, I will have a look at your implementation but I cannot
really guarantee that it will be before my holiday...

Regards,
Ovidio


On 09/26/2010 02:51 AM, Anthony Juckel wrote:
> I've written a quick add-on to the Properties-based databinding API to
> allow for aggregate properties (e.g. sum, average, min, max). I'd
> appreciate feedback regarding it's general usability as well as API design.
>
> Quick blog post:
> http://sputteringdigitized.blogspot.com/2010/09/eclipse-data binding-aggregation.html
>
> Github project:
> http://github.com/ajuckel/net.juckel.rcp.databinding.aggrega te
>
> Anthony W. Juckel
Re: [Databinding] Soliciting feedback on my aggregation library [message #632188 is a reply to message #630504] Tue, 12 October 2010 02:40 Go to previous message
Anthony Juckel is currently offline Anthony JuckelFriend
Messages: 19
Registered: July 2009
Junior Member
On 10/3/10 7:57 AM, Ovidio Mallo wrote:
> I only had a look at your blog post for now and since I will be on
> holiday for two weeks I might not get into having a closer look at the
> actual implementation. However, at first sight, it seems to me that what
> you're doing might be related to the following bug:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=300043
>
> The bug proposes some sort of "reducer API" which I think could also be
> used to implement the type of aggregations you are proposing (e.g. as a
> special implementation of a ListReducer). There's a tentative patch by
> Matthew Hall attached to the bug so you might want to have a look at it.
>

I pushed a new branch (b300043) to github which updates my static
utility class AggregateProperties to use the IListReducer API proposed
in bug 300043. All my tests still pass, but I can't see an obvious way
to port the weighted average property (which reduces two IListProperties
into a single IValueProperty).

Also, I'd like to start looking into making simple indexer reducers also
allow setting the indexed value. As an example, I've got
AggregateProperties#nth(int,IListProperty), and feel that observed
values of that property should be assignable.

Do you feel this API will likely make it into Indigo?
Previous Topic:Writing custom visibleWhen rules
Next Topic:Alternative location for plugin.xml
Goto Forum:
  


Current Time: Thu Apr 25 05:38:40 GMT 2024

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

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

Back to the top