Book a Demo

Author Topic: code engineering bug  (Read 2931 times)

mschipperheyn

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
code engineering bug
« on: December 19, 2005, 04:59:32 am »
I had some weirdness with code generation. I generated code, then made some changes to the UML. Then engineered the code again.

Even though the generated files were date marked correctly to mark the changes, some changes I had made in method signatures weren't reflected. They were only reflected after I deleted the source code and re-generated.

Marc

woodz

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: code engineering bug
« Reply #1 on: December 19, 2005, 12:41:32 pm »
Hello,

I've also made that experience.
I've solved it for me like this:

- do modifications on memberfunctions (names and parameters) or attribute renaming  in the IDE (e.g.VC 2003)
then reengineer the class(es)
- adding new members works as well as adding new classes, simple forward engineering should be adequate

I don't understand, why big IDEs like VC 2xxx .NET do not come with a fully intergatet UML 2.0 tool like EA?
How do the big developers, like sparx, softwareengineering? Forward/backward? I can't imagine.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: code engineering bug
« Reply #2 on: December 19, 2005, 02:09:32 pm »
Hi Marc,

What language were you generating?  What changes did you make?

If you're changing method names and/or parameter types you'll probably want to enable prompting.  (Tools | Options | Source Code Engineering | Attribute/Operations | On forward synch, prompt to delete code features not in model)

Or alternatively enable live generation for your working package.  (Project | Build and Run | Package Build Scripts | Use Live Code Generation)

mschipperheyn

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: code engineering bug
« Reply #3 on: December 20, 2005, 12:53:29 am »
I was generating Actionscript

Marc