[ATL] ATL-File to Ecore-Model [message #499309] |
Fri, 20 November 2009 18:18 |
Ralph Gerbig 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
|
|
|
Powered by
FUDForum. Page generated in 0.03657 seconds