Book a Demo

Author Topic: Code templates: Influencing note appearance  (Read 3131 times)

Christian Herger

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Code templates: Influencing note appearance
« on: July 01, 2008, 12:03:49 am »
Hi there

In our coding guidelines we have defined some page header that contains info like module name, author, date of creation and... description.
I would like to link the class notes to this page header and therefore placed the macro %ClassNotes% in the 'File' template. I also removed it from the 'Class' template so the notes won't appear just before the class name.
This works just fine if I generate a complete new source file!
Odd thing is, when I then generate again, the comment is inserted before the class name, too!  :o
Also, the comment inserted in the page header is not synchronised.
Can I influence this at all or is the place where notes appear just fixed?

Thanks for help on this...
Best regards

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code templates: Influencing note appearance
« Reply #1 on: July 01, 2008, 08:39:26 am »
The code synchronization will always attempt to place a class comment immediately before a class.  But I think if delete all contents of the Class Notes template (and save it like that) nothing should be generated and EA shouldn't add the notes you don't want.

However, the File template is not run during synchronization, so your note won't be synchronized.  You also won't be able to import comments formatted this way into EA from code.

Christian Herger

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Code templates: Influencing note appearance
« Reply #2 on: July 02, 2008, 12:34:10 am »
Thanks, this works... even though it's a pity we can not synchronize class notes anymore :(

We would be better off adapting our coding guidelines ;D
Best regards