Book a Demo

Author Topic: Comments in Code generation  (Read 3848 times)

placebo76

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Comments in Code generation
« on: September 26, 2012, 07:27:33 pm »
Hi,

i´m using the php code generation. It´s really nice because i can customize a lot of things, but how can i modify the comment sections?

In my code generation template i only have the marker "%JAVADOC_COMMENT(genOptWrapComment)%"

For example i want to generate automatically a return comment if a function has a return type, or delete the tab between parameter name and comment ... or adding the parameter type ...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Comments in Code generation
« Reply #1 on: September 27, 2012, 09:35:54 am »
You can't modify the output of the JAVADOC_COMMENT macro, but you can write a custom template to achieve the same effect.

Have a look at http://community.sparxsystems.com/tutorials/code-engineering/doxygen-code-templates-enterprise-architect for instructions on converting it to something you can customize.

placebo76

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Comments in Code generation
« Reply #2 on: September 28, 2012, 01:24:06 am »
thanks, that works