简体   繁体   中英

How to create an Xcore resource from an Ecore model?

I have an existing Ecore model that I would like to modify. For modifying I would like to use Xcore. An answer to another question says, that it is possible to import classes from an Ecore model to an Xcore resource. However since I would like to change existing classes, this doesn't work for me.

Reading the eclipsepedia entry for Xcore nor searching the web didn't bring anything useful.

So how can I create an Xcore resource from an Ecore model?

A eclipse forum entry led me to the correct path:

First you need to create a genmodel for the ecore model. This is done via New -> Other -> EMF Generator Model and following the steps in the wizard. After that go to the context menu of the genmodel and select Export Model... -> Xcore and follow the steps in the wizard.

EDIT: In the meanwhile I also found the mentioning of this in the Eclipsepedia article: http://wiki.eclipse.org/Xcore#Converting_a_GenModel_to_an_Xcore_Model

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM