Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Create an instance of Ecore
Create an instance of Ecore [message #658638] Wed, 09 March 2011 11:03 Go to next message
James is currently offline JamesFriend
Messages: 7
Registered: November 2010
Junior Member
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 16:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30544
Registered: July 2009
Senior Member
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: Tue Oct 15 11:00:03 GMT 2019

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

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

Back to the top