Author Topic: Code Engineering  (Read 4225 times)

gericson

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-1
  • I love YaBB 1G - SP1!
    • View Profile
Code Engineering
« 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?....

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Code Engineering
« Reply #1 on: April 29, 2015, 09:16:39 am »
Have you constructed an AST with the grammar?

See AST Nodes for the reference for what EA is looking for.

Parsing AST Results is a guide to using the AST tree that is part of the grammar editor.

gericson

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code Engineering
« Reply #2 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

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Code Engineering
« Reply #3 on: April 30, 2015, 09:17:59 am »
After the import, did you try File->Reload Project ?

gericson

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code Engineering
« Reply #4 on: May 01, 2015, 03:35:49 am »
No joy with reload.