Community
Participate
Working Groups
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)
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).
You might want to take a look at bug 167436.
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...
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.
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
*** This bug has been marked as a duplicate of bug 167436 ***