Book a Demo

Author Topic: Default Language for Code Generation will not Save  (Read 4603 times)

Mirko Meier

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Mirko Meier
    • View Profile
Default Language for Code Generation will not Save
« on: July 25, 2008, 06:10:32 pm »
The Default Language in Options for Code Generation is default "Java".
When I change the Language, restart EA the Language is set to Default "Java".

Way to reproduce:
1. Open a Project
2. Select in Main Menu: Tool -> Options ...
3. In the dialog select on the left "Source Code Engineering".
4. on the right change the "Default Language for code Generation" to another language as Java, i.e. "C#".
5. Close the Dialog.

--> After open the Dialog, "C#" is setted.

6. Restart EA.
7. Open a the same Project as before
8. Select in Main Menu: Tool -> Options ...
9. In the dialog select on the left "Source Code Engineering".

--> Default Language is set back to "Java".
Regards

Mirko Meier

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Default Language for Code Generation will not
« Reply #1 on: July 25, 2008, 09:46:27 pm »

I can't solve your problem Mirko, but I can explain what's happening.

This is a per project setting. As such it is saved with a project.

So far so good...

Since EA 'creates' a new project by copying a 'seed' project, the new project inherits the language setting. The default seed project is EABase.EAP, placed in the EA installation directory during setup. You cannot change this behavior, but you can edit the EABase project to change the language.

You can also designate an alternate seed project - you need to do this each time you create a new file - by clicking the Copy a Base Project link on the EA Start page.

Don't you just hate it when the answer is "This behavior is by design."?

HTH, David
No, you can't have it!

Mirko Meier

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Mirko Meier
    • View Profile
Re: Default Language for Code Generation will not
« Reply #2 on: July 25, 2008, 10:01:43 pm »
Thanks for your Answer. Now I Can't reproduce the Bug.

Your Solution works, that's the essential.

It's a good solution to modify the template, thanks.
« Last Edit: July 25, 2008, 10:02:08 pm by mirkom76 »
Regards

Mirko Meier