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
Hi,

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);
			sourceInput.close();

			//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 - http://www.eclipse.org/gmt/2005/ATL
2 - http://www.eclipse.org/gmt/2005/OCL

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!

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


Current Time: Fri Oct 18 08:26:03 GMT 2019

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

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

Back to the top