Book a Demo

Author Topic: default code generation language  (Read 3703 times)

kwattro

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
default code generation language
« on: November 25, 2005, 02:21:08 am »
I've used EA 4.0 to implement some successful projects in .Net and Oracle in in the past - I have moved on since and now working for another company and we are embarking on a major development - I'm responsible for making recommendation & evaluating UML Case tools - obviously EA is in my radar screen.

From memory, the default code generation language is set at the machine level - not even at per project level - is it still the case with current version?  

Thanks in advance

thomaskilian

  • Guest
Re: default code generation language
« Reply #1 on: November 25, 2005, 03:53:22 am »
You can use it even at class level :) but normally its decided on package level. So you have the possibility to maintain different language packages derived from a PIM.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: default code generation language
« Reply #2 on: November 27, 2005, 01:09:22 pm »
The default code generation language has always applied to a model, not the machine.

Version 6.0 includes the option to set this for an individual package as Thomas said.  (Project | Build and Run | Package Build Scripts)

jnapier

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: default code generation language
« Reply #3 on: April 19, 2006, 03:14:21 pm »
Ive been trying to set the default language for a model and can not figure out how to do it.  The properties for the Model will not let me adjust the language, it is grayed out.


I have set the language at the package level but everytime I create a new class in the package, the language for the package is set to another language other than the default. I have even disabled all other languages but the class still gets created as another language.  Is this a bug or am I just not understanding how to set the default language to apply to all elements.

Thanks.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: default code generation language
« Reply #4 on: April 19, 2006, 04:12:02 pm »
Try Tools / Options / Source Code Engineering (not one of the individual languages). In the second set of options you will find Default Code Generation Language.

Somehow this always seems to want to go back to Java, so you may have to set it for each model.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: default code generation language
« Reply #5 on: April 19, 2006, 05:18:24 pm »
Quote
Somehow this always seems to want to go back to Java, so you may have to set it for each model.

The default in the base model is Java.  If you open the base model and change it, it will be the default in all new models you create.

jnapier

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: default code generation language
« Reply #6 on: April 20, 2006, 11:56:10 am »
Ah, Base model. Thats why it was always reverting. Thanks.