Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] ATL-File to Ecore-Model
[ATL] ATL-File to Ecore-Model [message #499309] Fri, 20 November 2009 18:18
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member

I'am using the following code to make an Ecore-Model out of an ATL-File:

			InputStream sourceInput = new FileInputStream(sourcePath);
			AtlParser parser = AtlParser.getDefault();
			//parse source ATL file to EMFModel
			IModel model = parser.parseToModel(sourceInput);

			//write model to disc
			CoreService.getExtractor("EMF").extract(model, "file:/" + destinationPath);

But unfortunatly I cannot open the create model with the Sample Ecore Model Editor, because it references to two meta-models:

1 -
2 -

Is there a way to make it only reference to platform:/plugin/org.eclipse.m2m.atl.common/src/org/eclipse/ m2m/atl/common/resources/ATL.ecore ?

Thanks in advance!

Previous Topic:[QVTo] Failed to resolve metamodel
Next Topic:[ATL] problem when using allInstancesFrom
Goto Forum:

Current Time: Thu May 28 01:29:30 GMT 2020

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

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

Back to the top