|Empty XMI when running a transformation from an eclipse plugin [message #1753173]
||Thu, 02 February 2017 12:46
| Thibault beziers la fosse
Registered: February 2017
Hello, I'm trying to refine a model from the MoDisco java MetaModel. When I launch the transformation from the ATL EMFTVM Configuration, it works fine, but I want to do this as an eclipse plug-in command.|
Using MoDisco programmatically, I generate a java-model of an eclipse java project, but then when I launch the ATL transformation, either the xmi model is empty, or the previous java model hasn't changed at all.
Here's a sample of the java code:
execEnv = FACTORY.createExecEnv();
resourceSet = new ResourceSetImpl();
Metamodel inOutMetamodel = EmftvmFactory.eINSTANCE.createMetamodel();
inOutModel = EmftvmFactory.eINSTANCE.createModel();
ModuleResolver moduleResolver = new DefaultModuleResolver(transformationDir, resourceSet);
TimingData timingData = new TimingData();
Here's the header of the ATL file:
-- @atlcompiler emftvm
-- @nsURI MM=http://www.eclipse.org/MoDisco/Java/0.2.incubation/java
create OUT : MM refining IN : MM;
During the execution, the debug mode showed that both the Metamodel and the Model has been found, but still, nothing happen.
If you could give me an advice, that would be very helpful. The whole project is attached if you need more details.
[Updated on: Thu, 02 February 2017 19:25]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02576 seconds