Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: gericson on April 29, 2015, 08:19:35 am

Title: Code Engineering
Post 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?....
Title: Re: Code Engineering
Post by: Eve on April 29, 2015, 09:16:39 am
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.
Title: Re: Code Engineering
Post by: gericson on April 30, 2015, 07:15:25 am
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
Title: Re: Code Engineering
Post by: VKN on April 30, 2015, 09:17:59 am
After the import, did you try File->Reload Project ?
Title: Re: Code Engineering
Post by: gericson on May 01, 2015, 03:35:49 am
No joy with reload.