Book a Demo

Author Topic: Generating/reversing comments  (Read 6539 times)

zap555

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Generating/reversing comments
« on: November 06, 2009, 12:30:01 pm »
In the Options for source code engineering there are two check boxes for handling Comments, Generate and Reverse.  I've checked the Generate box to output all the model Notes into source code, and after tweaking the format a little in the code templates, I'm happy with the output.

In synchronizing the model with the code (reversing), I first tried with the Reverse Comments box checked.  For the most part the comments made it into the Notes (with the exception of Parameter Notes, which were lost), but the format was somewhat munged because of the formatting I'd applied in the code templates.

Then I tried it again with a backup copy of the model and the Reverse Comments box unchecked, expecting all the model Notes to be left as is.  I was rather surprised to find that the Notes for Operations and their Parameters were deleted entirely.  I can't imagine when that would be the desired behavior, so I'm inclined to call it a bug.  But I thought I'd ask if perhaps there's a setting or workaround that I haven't found.

Is there a way to keep all the model Notes untouched when synchronizing with code?

Thanks so much,
Jason

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Generating/reversing comments
« Reply #1 on: November 10, 2009, 08:46:23 pm »
Faced that problem before when trying to tweek comments generation.
I think you shuold turn to Sparx, I don't think they are able to handle thisproperly.
Recursion definition:
If you don’t understand the definition read "Recursion definition".