|
Re: Command to put to an EMap ? [message #501474 is a reply to message #501466] |
Wed, 02 December 2009 13:58 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Guillaume,
No, you need to create a map entry, which must be done reflectively,
e.g., XyzFactory.eINSTANCE(XyzPackage.Literals.MAP_ENTRY_CLASS),
populate it, and then use an AddCommand. To modify an existing entry
you need to use a SetCommand on the value feature. You should never
change the key on a map entry but rather remove the old entry and add a
new one.
Guillaume CHATELET wrote:
> Hello,
>
> I'd like to use EMF.Edit Commands to modify an EMap and put values in
> it. Is there any PutCommand ? or any advice on how to implement it ?
>
> Best regards,
> Guillaume
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03480 seconds