|
Re: Difference between launch transformation via Eclipse Run configuration and via Java [message #1770168 is a reply to message #1769834] |
Tue, 08 August 2017 19:30 |
Tracia W Messages: 2 Registered: August 2017 |
Junior Member |
|
|
Hi, in fact I found the generation runs successfully. Just something prevent Eclipse from refreshing the Project Explorer... But I have struggled to pass a textual syntax file (by EMFText). I modified the generated plugin code something like:
Gen2Config runner = new Gen2Config();
ResourceSet rs = new ResourceSetImpl();
rs.getResourceFactoryRegistry().getExtensionToFactoryMap().put("myLanguageExtention", new MyLanguageResourceFactory());
runner.loadModels("data/input.myLanguageExtention");
runner.doGen2Config(new NullProgressMonitor());
runner.saveModels("data/output.ecore");
Print my input language resource and my input metamodel both gives a list of object same as the file content. But the output.eocre are always empty. No clue at all and tried to search online and checked the ATL lib code for 2 days. Please help. It would be wonderful if there is any sample code that I can get an impression.
[Updated on: Wed, 09 August 2017 20:40] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03622 seconds