Skip to main content



      Home
Home » Modeling » EMF » Create an instance of Ecore
Create an instance of Ecore [message #658638] Wed, 09 March 2011 06:03 Go to next message
Eclipse UserFriend
Hi All,

I have a bit of a newbie question. I have a ecore model that I have created and I was wondering what the best way to instantiate the ecore model programmatically.

Thanks in advance,
Jame
Re: Create an instance of Ecore [message #658739 is a reply to message #658638] Wed, 09 March 2011 11:13 Go to previous message
Eclipse UserFriend
Jame,

You generated the model for it so you can use
XyzFactory.eINSTANCE.createSomething()? Or you can use
EcoreUtil.create(<something's EClass>).


James wrote:
> Hi All,
>
> I have a bit of a newbie question. I have a ecore model that I have
> created and I was wondering what the best way to instantiate the ecore
> model programmatically.
>
> Thanks in advance,
> Jame
Previous Topic:XSD -> ECORE -> ATL
Next Topic:[Mapping] org.eclipse.emf.mapping
Goto Forum:
  


Current Time: Thu Jul 17 02:12:03 EDT 2025

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

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

Back to the top