Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to set Values of attributes programmatically
https://www.eclipse.org/forums/index.php/mv/msg/1101398/1817376/#msg_1817376
I have loaded a meta model i.e trip.ecore Programmatically (using resourse set, Resourse etc). Thereafter, I created instances of the Meta-Model Classes using EFactory. Instances are successfully created and i have stored them in xmi model.
Now Iam facing issues in setting values of these attributes, programmatically. and setting links among these instances programmatically.
like i have created an instance Trip, now i want to set the value of its attruibute name of type estring as "London Trip" How will i do that programmatically and not using xmi editor.
Object is made how will i access its attributes and references....
Trip._____________
Thanks in advance]]>yawar rasheed2019-11-21T11:38:34-00:00Re: How to set Values of attributes programmatically
https://www.eclipse.org/forums/index.php/mv/msg/1101398/1818111/#msg_1818111
Did you generate the code(model, edit, editor) from your trip.genmodel ?
After deployment of the resulting plugins (or in a runtime), you would have the possibility to use: