Tried searching the forum on every keyword I could think of and could not find the answer to what must surely be a FAQ...
Right click on a class, select Operations, select one of your Operations from the list, then select Behavior. Type some stuff in the Behavior box, then click "Show Behavior in Diagram" and hit "Save" then "Close".
Now right click on the class and click "Generate Code". The stuff you put in Behavior will show up as a comment at the beginning of the implementation of the operation.
Go to a code editor and make a minor change in your source code, then right click on the class in EA and click "Synchronize with Code". Now right click on the diagram again, select Operations again, select the Operation you added the Behavior note to before, then select Behavior. You'll find that the note you put in the Behavior box shows up both in the Behavior box AND as a comment in the "Initial Code" box.
Now if you generate code again, you'll get TWO identical comments at the start of the operation, and if you do all of this again you'll get three, four, five, six, etc. copies of the comment, all the same.
Every time I do a round trip (generate code, edit code, synchronize with code), I have to go back to all of my operations and edit out all the extra copies of the comments. Very time consuming.
Is this configurable in any way? Any way to fix this?