Bug 202087 - [Databinding] Need filtered oservable list implementation
Summary: [Databinding] Need filtered oservable list implementation
Status: RESOLVED DUPLICATE of bug 167436
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-03 11:26 EDT by Roland Tepp CLA
Modified: 2009-01-21 23:02 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Tepp CLA 2007-09-03 11:26:12 EDT
What I need is to have an implementation of an observable list that is a filtered view of another list, containing elements from the original list that meet some predefined condition. 

I need to be able to observe the changes to the filtered list (triggered by either modifying elements in the original list or changes to the original list itself.) and retrieve the listing of filtered items.


(On a related thought - perhaps same kind of filtered observable collection capability would be beneficial for Sets and maybe Maps as well)
Comment 1 Eric Rizzo CLA 2007-09-03 12:14:09 EDT
It is extra work and complexity, but it might be useful to make the filter itself able to use Data Binding to be bound to an observable. As an example of usage, imagine a filtered list whose filter criteria is controlled by selection from a combo box or an expression in a text field (like that the Open Type/Open Resource dialogs do currently).
Comment 2 Brad Reynolds CLA 2007-09-03 12:34:27 EDT
You might want to take a look at bug 167436.
Comment 3 Roland Tepp CLA 2007-09-04 04:07:22 EDT
Although the patch submitted to bug 167436 looks a lot like what I requested, the bug itself does not make any sense to me.

It seems to be a part of some bigger work (referencing to bug 167010), but what is these bugs about... 

I'm confused...
Comment 4 Brad Reynolds CLA 2007-09-04 09:44:57 EDT
Once the patch is applied it should give you what you're looking for.  CC yourself yourself there if you want to know if and when that happens.
Comment 5 Boris Bokowski CLA 2007-09-04 09:49:46 EDT
I'm sorry for the confusion - I had worked on filtered lists and sets for a day or so, but the implementation is incomplete and untested. If you would like to help, you could try to complete the implementation, or even better, write some tests that capture the desired behaviour of filtered lists and sets.

http://wiki.eclipse.org/JFace_Data_Binding/How_to_Contribute
Comment 6 Matthew Hall CLA 2009-01-21 23:02:57 EST

*** This bug has been marked as a duplicate of bug 167436 ***