|Re: How to set Values of attributes programmatically [message #1818111 is a reply to message #1817376]
||Fri, 06 December 2019 07:57
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
Hi Yawar, |
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:
Trip myTrip = TripFactory.eINSTANCE.createTrip();
For the moment I assume you have dynamic instances, you might try : trip.eSet(EStructuralFeature feature, Object newValue);
For those general question on Ecore and not related to Sirius, I invite you to post on the EMF forum: https://www.eclipse.org/forums/index.php?t=thread&frm_id=108
You might also find resources on the following page: https://www.eclipse.org/modeling/emf/docs/
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.02005 seconds