Author Topic: Change Default Code Generation Language  (Read 4264 times)

avantol13-2

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Change Default Code Generation Language
« on: November 04, 2014, 04:06:08 am »
How can I force generation using a specific language? e.g. change the "language" field in package or class properties.

Thanks,
Alex

avantol13-2

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Change Default Code Generation Language
« Reply #1 on: November 05, 2014, 04:22:51 am »
Using the API of course, sorry I wasn't specific.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Change Default Code Generation Language
« Reply #2 on: November 05, 2014, 08:29:46 am »
Not exactly clear that I will answer your question however.

If you want to set the language that will be used when generating an element you set the GenType property for each element as required.  Elements could have different languages set and they appear to be generated independently and not aware of any mechanism to do a general override at code generate.

There is a user setting ( Tools | Options | Source code engineering) where you can set the default when the element is created.  As far as I am aware you cannot change the defaults that exist with EA's UI.

One suggestion is to override the default setting when the element is created.  You can use the OnPostNewElement event and in the code set the GenType property as you require.  

Hope this helps.



EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Change Default Code Generation Language
« Reply #3 on: November 05, 2014, 09:41:25 am »
The manual way would be Advanced/Update Package Status on the package.

q.