|Databinding to map entry [message #1691087]
||Thu, 02 April 2015 08:54
| Dollyn Sun
Registered: July 2009
My EMF class has a feature of type EMap, I want to bind one of the |
key-value pair to a swt Text control:
EStructuralFeature feature = xxxx;
IObservableMap observableMap =
IObservableValue model =
context.bindValue(SWTObservables.observeText(control, events), model);
But this does not work, when I type something in the Text control, the
value just cannot be set back to the map entry.
And I find out that in the EMFEditMapProperty class, the doSetMap method
protected void doSetMap(Object source, Map map, MapDiff diff)
EObject eObject = (EObject)source;
Command command = SetCommand.create(editingDomain, eObject,
it use a "SetCommand" to set the EMap feature, but this does not work.
And I find out that infact, EMap is not a java.util.Map, but is a
List... I think this could be a bug here, or I have mis-used this class?
Powered by FUDForum
. Page generated in 0.01892 seconds