|Some code cannot be generated when Dynamic Templates is true [message #1785418]
||Fri, 13 April 2018 15:22
| newman zhu
Registered: April 2018
I'm a beginner in EMF.|
I'm reading "Eclipse Corner Article Implementing Model Integrity in EMF with MDT OCL", but the sample it attached quite made me confusion:
when I open sample project in Eclipse 3.3.0, and click "generate model code", all files will be generated, but all of them are empty.
when I open sample project in Neon.3(4.6.3), and click "generate model code":
if I turn "Dynamic Templates" to false, then all class code can be generated, of course, three methods (allReports(), reportingChain(), reportsTo(Empolyee)) in Employee class are not implemented;
if I turn "Dynamic Templates" to true, then all class file are generated, but 6 files (3 Interfaces and 3 Classes) related to Company, Department, Employee are all empty.
So could anyone tell me what's wrong with me? Thanks a lot.
Powered by FUDForum
. Page generated in 0.02819 seconds