|
|
|
Re: Update map using EditingDomain [message #1769770 is a reply to message #1769759] |
Thu, 03 August 2017 09:39 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This really depends on the context. In an Ecore model you can create many EAnnotation.details entries. They all start out with a null key and a null value. If you add more than one, and the Live Validation is enabled (you can set Decoration to Live to generate an editor like that), then there will be error markers to show that the keys aren't unique. The user can fix those errors. The user can also change the value of a key so that it's no longer unique. Nothing prevents those changes, but validation will show them as problems. So I don't know the context in which you're creating the commands. If you know up front that the user wants to add an entry with a given key and value, you could create an AddCommand to add a new entry or create a SetCommand to modify the value feature of an existing entry.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03015 seconds