Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to read an Ecore model
How to read an Ecore model [message #543969] Thu, 01 July 2010 08:44 Go to next message
Ehsan is currently offline EhsanFriend
Messages: 5
Registered: June 2010
Location: Norway
Junior Member

Hello,

How can I read a Ecore model, the model was created by other softwares and been imported into eclipse. I want to read the model so I can do some mapping processes on it.

thanks,
ehsan
Re: How to read an Ecore model [message #544054 is a reply to message #543969] Thu, 01 July 2010 13:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Ehsan,

The overview article shows how to load resources. Ecore resources are
loaded just like any other using ResourceSet.getResource.


Ehsan wrote:
> Hello,
>
> How can I read a Ecore model, the model was created by other softwares
> and been imported into eclipse. I want to read the model so I can do
> some mapping processes on it.
> thanks,
> ehsan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to read an Ecore model [message #544256 is a reply to message #543969] Fri, 02 July 2010 07:39 Go to previous message
Ehsan is currently offline EhsanFriend
Messages: 5
Registered: June 2010
Location: Norway
Junior Member

hello,
thanks.

in order to read a ecore model
1- create a resourceset
2- register the resource using getResourceFactoryRegistry()
3- read the resource using gerResource()


ehsan
Previous Topic:Reusing Ecore (M3) as extensible Kernel Metamodel (M2)
Next Topic:Teneo + EcoreUtil.Copier: Wrong ID ..?
Goto Forum:
  


Current Time: Fri Apr 19 01:12:20 GMT 2024

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

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

Back to the top