Book a Demo

Author Topic: Code Comments versus behaviour  (Read 3095 times)

woodz

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Code Comments versus behaviour
« on: December 20, 2005, 04:54:14 am »
Hello,

Default language: C#

if I create a class add methods and write a comment into the beahaviour property section of the Object Operations Dialog this text will appear in the code directly under the '{' of the method signature. Very fine.
But, if I reengineer a new class definition the comment isn't set as behaviour.
If I edit the comment in code of a previously forward engineered class the behaviour is also not updated after reengineeing it.

My goal is to reflect changes of comments / behaviours everywehre, independent of the location where the changes are done.

Can EA support this?

thanks

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Code Comments versus behaviour
« Reply #1 on: December 20, 2005, 10:37:54 am »
Did you check the Reverse box in the comments section of the Source Code Engineering tab in Tools -> Options?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Comments versus behaviour
« Reply #2 on: December 20, 2005, 01:12:25 pm »
No.  EA doesn't round trip that field.  It's only used for generation, and only in an initial generation.

The closest that you can do is check the option to reverse engineer method bodies.  The behaviour as EA generated it will then be included as part of the initial code field when reverse engineering.  Neither of these is updated in code when synchronising as EA always leaves the method body untouched.