6
« on: September 13, 2006, 07:50:36 am »
Hi,
I'm an experienced CASE-tool user (Rose, MEGA, ...) but a novice to EA. Probably these are two simple questions for you guys.
1) If I create a model with a few packages and classes, then generate code with the "include all child packages" option from the top package, the classes don't appear in the dialog and nothing can be generated. If I transform to Java first within EA, then generate the code, I do see the classes and the code generates OK. Where's the difference in the class or package properties of both parts of the model and what do I have to do to generate the code directly from my model without the transformation step ?
2) I've read through the documentation and find that the code generator is designed around the common properties of the languages supported. Suppose I want to define a new language (I do, BTW), that has a different file and directory structure to its source code (in this case: a whole package structure including classes goes into a single file), how do I define the directories and files to be generated using the CTF, or is that not possible ? What alternatives do I have to get this done (perhaps using the document generator ? I'm willing to spend some effort, as this is a really important language for me) ? For information, reverse engineering is not needed, but forward engineering should be incremental (i.e. not overwrite any additions made to the generated code. It's OK to overwrite the previously generated code parts, though)
Thanks for any answers.
Erwin.