Book a Demo

Author Topic: How to make Java the default for cogeneration  (Read 4946 times)

svedloff

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to make Java the default for cogeneration
« on: March 23, 2004, 04:07:17 pm »
Nice tool.  I designed some diagrams, and now I am trying to generate some code.  For every class, I have to go in and change the default code generation language from C++ to Java.  There doesn't seem to be any way to do it on a global level.  Any help would be appreciated.

Rob_M

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: How to make Java the default for cogeneration
« Reply #1 on: March 23, 2004, 05:22:11 pm »
Go to the tools menu -> options
Select Generation.
Change default language for code generation to language of choice.

Rob M.

restrick

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: How to make Java the default for cogeneration
« Reply #2 on: March 23, 2004, 05:38:01 pm »
I have a model into which I've imported a Visual Basic (vb6) project.  I would like to export the code as vb.net files but, as of right now, I have to go into each class and set its language to vb.net from visual basic manually, else the code generation wizard defaults to generating files in visual basic.

If I shift+select a group of classes in the diagram and try to change the property in the "Properties" window, it is disabled.

Changing the "Default Language for Code Generation" option under tools->Options didn't help.

Is there a way to do this via the api or the UI???
Thanx in advance.

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: How to make Java the default for cogeneration
« Reply #3 on: March 24, 2004, 01:45:12 am »
Hi Restrick

Right-click the package, select Code Engineering and 'Reset options for this package'.  Assuming you are using 4.0.

Sean