|
|
|
|
|
Re: EObject type in Epsilon [message #1723723 is a reply to message #1723719] |
Wed, 17 February 2016 11:17 |
|
Hi Leila,
I see. I think that you need to add Ecore.ecore to your transformation as a third model (e.g. EcoreEcore). To do this you can select the "Registered EMF EPackage" model type in the "Select type of model" configuration dialog, set the name of the model to EcoreEcore and type/select the following metamodel URI: http://www.eclipse.org/emf/2002/Ecore. Line 111 of your code should then be modified as follows:
ref.eType := EcoreEcore!EClass.all.selectOne(c|c.name = "EObject");
Cheers,
Dimitris
|
|
|
|
|
|
|
|
|
|
|
Re: EObject type in Epsilon [message #1740108 is a reply to message #1739998] |
Tue, 09 August 2016 10:06 |
|
Hi Leila,
The problem seems to be that you're not calling the load() method of your instance of EmfMetaModel. Adding a call to load() seems to be doing the trick.
protected EmfMetaModel createEmfMetaModel(String name, String metamodelUri,
boolean readOnLoad, boolean storeOnDisposal)
throws EolModelLoadingException, URISyntaxException {
EmfMetaModel emfMetaModel = new EmfMetaModel(name,metamodelUri);
emfMetaModel.setReadOnLoad(readOnLoad);
emfMetaModel.setStoredOnDisposal(storeOnDisposal);
emfMetaModel.load();
return emfMetaModel;
}
Cheers,
Dimitris
[Updated on: Tue, 09 August 2016 10:06] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03403 seconds