Book a Demo

Author Topic: code generation defaults  (Read 3866 times)

rescobar

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
  • Viva Bolivia
    • View Profile
code generation defaults
« on: September 19, 2005, 05:59:29 am »
Despite I set Default Language for Code Generation to VBNET, when I try to generate several classes the code that is been generated has the java extension. Why?
Only class by class, changing the Target Laguage is possible to generate the code in my preferred language.
What am I doing wrong?
Thanks in advance for your kind help.
Ramiro
Sergio Escobar
[email protected]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: code generation defaults
« Reply #1 on: September 19, 2005, 03:30:07 pm »
At a guess, I would say that you created those classes before setting the default language to VBNet.  The language was set on creation, and as a result they are all Java classes now (as was the option for default language at the time.)

To fix your error, right click on a package (that contains all the problem classes) in the tree view.  Select Code Engineering -> Reset Options for this package.  This allows you to reset the language, and filenames for all classes within that package.

For more information please see http://sparxsystems.com.au/EAUserGuide/index.html?resetoptions.htm

Simon

rescobar

  • EA User
  • **
  • Posts: 69
  • Karma: +0/-0
  • Viva Bolivia
    • View Profile
Re: code generation defaults
« Reply #2 on: September 19, 2005, 03:38:03 pm »
Thanks a lot for your kind answer Simon.
Sergio Escobar
[email protected]