Community
Participate
Working Groups
It is a typical situation that a bean has several related properties aggregated into a map instead of having a separate getter/setter for each one. There is also typically a predefined set of keys for entries in this map, making each entry semantically equivalent to a standalone bean property. A common example would be a map of phone numbers with keys like HOME, WORK, CELL, FAX. A GUI form for editing such a bean should not make any distinction between standalone properties and keyed properties such as these. Therefore it is a common requirement to have an observable value bound to a specific map entry. I propose such an observable in the patch that will be attached.
Created attachment 65457 [details] MapEntryObservableValue, a test for it, additions to Observables and WritableMap
Thanks for the contribution!
Marko, for IP process reasons, we would need your employer's name, and the following (please respond on this bug): a. Confirm you authored 100% of the code b. Confirm you have the rights to donate the code to Eclipse c. Confirm you are submitting the code for inclusion in future Eclipse releases under the Eclipse Public License Thanks!
I don't have any experience on how to phrase these confirmations that you need from me, so I'll make it plain and simple... I confirm: a. that I authored 100% of the code; b. that I have the rights to donate the code to Eclipse; c. that I am submitting the code for inclusion in future Eclipse releases under the Eclipse Public License. My employer is CROZ d.o.o, based in Zagreb, Croatia.
This contribution has been approved by the Eclipse Foundation legal staff.
Quick poll: Observables.observeMapEntryValue(IObservableMap, Object key, Object valueType) Observables.observeDetailMapEntryValue(IObservableMap, IObservableValue masterKey, Object valueType) or: MapObservables.observeEntryValue(IObservableMap, Object key, Object valueType) MapObservables.observeDetailEntryValue(IObservableMap, IObservableValue masterKey, Object valueType)
Marco: I need to update the authorship comments, as all your files had IBM as the copyright owner. Are you contributing this under your name or your employer's?
Created attachment 91709 [details] Final patch pending answer from Marko on copyright info
Created attachment 91710 [details] mylyn/context/zip
(In reply to comment #7) Matthew, I am contributing this under my name.
Released to HEAD > 20080306 Thanks for the contribution! New API: Observables.observeMapEntry(IObservableMap map, Object key, Object valueType) Observables.mapEntryValueFactory(IObservableMap map, Object valueType) Observables.observeDetailMapEntry(IObservableMap map, IObservableValue master, Object valueType)
Verified by code inspection in I20080327-0100.