Book a Demo

Author Topic: Problems with code gen?  (Read 5808 times)

julian

  • Guest
Problems with code gen?
« on: November 29, 2005, 12:54:03 pm »
Hi all I'm having difficulty with the code gen. The last version I used, 4.5 was fine. However I'm struggling to figure out what magic incantations I have to utter to get it to appear in 6?

Even if I do an MDA transform to java, selecting the nodes on the diagram reveal no code.

Strangely, I have another EAP file which magically generates code all by itself. This was a file I createdin 4.5.

any enlightenment most apprecaited. I'm looking forward to figuring out how to use this stuff!
J

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problems with code gen?
« Reply #1 on: November 29, 2005, 12:59:44 pm »
Hi julian,

What process are you trying to generate the code?

If you right click on a class and select 'Generate Code' what happens?

EA 6 has an option on a package to allow automatic code generation, so this is probably what is happening in your other model.  To edit this option, select a package in the tree and open Project | Build and Run | Package Build Scripts.  The option in question is 'Use Live Code Generation'.

julian

  • Guest
Re: Problems with code gen?
« Reply #2 on: November 30, 2005, 01:30:10 am »
Simon that solved it thanks!

I have no idea how this got turned on in my 4.5-generated version.

A suggestion -- could it be worth having this on by default?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problems with code gen?
« Reply #3 on: December 01, 2005, 01:03:36 pm »
Quote
could it be worth having this on by default?

Probably not.  People use EA for all sorts of things besides code engineering, and this would get in the way for other applications.