Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Using generated EFactory for target metamodel
[ATL] Using generated EFactory for target metamodel [message #78145] Wed, 02 April 2008 02:14
Stefan Schulze is currently offline Stefan SchulzeFriend
Messages: 70
Registered: July 2009
Member
Hi!

I'm launching my ATL-transformation programatically. I generated the
package, factory and so on for the target metamodel (default EMF stuff). Is
it possible to use these generated classes for storing the target model
instead of the EDynamicEObjects?
I already tried
> EPackage.Registry.INSTANCE.put(WrapPackage.eNS_URI,
> WrapPackage.eINSTANCE);
and
> ASMEMFModel.getResourceSet().getPackageRegistry().put(WrapPa ckage.eNS_URI,
> WrapPackage.eINSTANCE);
in combination with
> ASMModel target=loader.newModel("Trg", WrapPackage.eNS_URI, targetMM);
but it looks like the EMFModelLoader#adaptMetamodel(...) overwrites my
custom settings in the package-registry.
I know I have to achieve that my ASMModel targetMM has to contain an
instance of my generated WrapPackageImpl, but I don't know how I could get
it.
I hope anybody can give me a hint,
Stefan
Previous Topic:[ATL] Wrapping sourcemodelelements
Next Topic:[QVTO] Adding custom operations for primitive data types
Goto Forum:
  


Current Time: Tue May 21 18:44:55 GMT 2019

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

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

Back to the top