Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: gericson on April 29, 2015, 08:19:35 am
-
I've created a mts file with .nbnf that successfully parses my source files.
When I use code engineering to import a source directory (or even just one file.) It succeeds, but does not populate the model in the Project Browser.
What am I missing?....
-
Have you constructed an AST with the grammar?
See AST Nodes (http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/extending_uml_models/context_labels.html) for the reference for what EA is looking for.
Parsing AST Results (http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/extending_uml_models/parsing_ast_results.html) is a guide to using the AST tree that is part of the grammar editor.
-
Yes
I have a .nbnf file that parses my source files and gets an AST Result
I have created a .mts file that references the .nbnf file and have defined the MOFv2 language The model to source code templates are not complete, but I assume :-/ that this is OK for import.
From the browser, I select Code Engineering and select import source directory (or file), This reports Reverse engineering classes, goes through importing all my files, says resolving relationships and import complete.
But, nothing appears in the Browser after this step.
George
-
After the import, did you try File->Reload Project ?
-
No joy with reload.