Community
Participate
Working Groups
Created attachment 81794 [details] Support element type parameter in Observable observable collection factory methods Observables has methods for creating sets and lists which are empty, static, unmodifiable, or proxies. None of these methods accept an elementType parameter, which forces me to weaken contracts on my master-detail collections. The attached patch: * Complements the existing factory methods with new methods accepting an elementType parameter. * Adds unmatched methods (e.g. there is a proxyObservableSet method but no proxyObservableList) * Adds methods for converting an IObservableValue to an IObservableList or IObservableSet. This item is unrelated to the others but I've found it useful and so include it here. It's quite useful as a viewer input in conjunction with an Observable(List|Set)(Tree)?ContentProvider. If necessary I can file a separate bug for this item and revise the patch.
Ping. All of these features are distinct and separable. I can separate this RFE into multiple smaller ones (one for each bullet point in comment #0) if that makes the IP process easier.
Reminder to self: resubmit patch with default Eclipse formatting, and add contribution and copyright comments
Created attachment 84601 [details] Accept element types in Observables factory methods Overhauled javadocs in Observables, added contributor comments.
Complete, ready for review.
Taking ownership
Reminder: Add ProxyObservableListTest which was accidentally included in 208858 patch instead of this bug.
Created attachment 88171 [details] Updated patch with more tests Still need tests for: * EmptyObservableList * EmptyObservableSet * UnmodifiableObservableSet
Created attachment 88172 [details] mylyn/context/zip
Created attachment 89673 [details] Final patch with all tests
Created attachment 89674 [details] mylyn/context/zip
Released to HEAD > 20080213
Verified by code inspection in 3.4M5