Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » load EMF instance model and then create a object in it programmatically
load EMF instance model and then create a object in it programmatically [message #1795804] Sat, 29 September 2018 07:49 Go to next message
remy kif is currently offline remy kifFriend
Messages: 2
Registered: September 2018
Junior Member
I need to load an instance of an EMF model and then create an object in it just by coding in a separate plugin. Please explain to me with a code extract on how to create this object?

EX: Assume that we have a simple metamodel: a classroom that contains students.
and there is a classroom1.xmi instance already exists. I want to load it and then add 20 students per program?

Thanks
Re: load EMF instance model and then create a object in it programmatically [message #1796105 is a reply to message #1795804] Fri, 05 October 2018 07:46 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 111
Registered: September 2016
Senior Member
Hi,

You new to create a resources, load it it, and then call "getContents()"

Best regards,
Jonas


--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:Xtext Generator making random mistakes while generating java classes
Next Topic:Extended Ecore Model Issues
Goto Forum:
  


Current Time: Fri Apr 19 06:35:39 GMT 2024

Powered by FUDForum. Page generated in 0.01950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top