Book a Demo

Author Topic: Adding a further language to the code generation  (Read 4242 times)

angel-o-sphere

  • EA User
  • **
  • Posts: 112
  • Karma: +0/-0
    • View Profile
Adding a further language to the code generation
« on: March 10, 2004, 05:07:07 am »
Hi,

I like to generate code for the groovy language (www.codehouse.com).

I can not figure how to add code generation templates. I added a new "product" and now I can choose groovy as language in my class diagrams.

However only empty files are generated ... probably an "auto generate tempate" for unknown languages would be cool.

angel'o'sphere

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Adding a further language to the code generati
« Reply #1 on: March 10, 2004, 05:53:49 am »
G'day g'day,

I haven't tried this at all, so can't help you beyond suggesting it:

Look for Code Template in the index of EA's help file.

Best of luck.
Cheers and best regards.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Adding a further language to the code generati
« Reply #2 on: March 10, 2004, 09:47:51 pm »
Hi angel'o'sphere,

The help file does go into a bit more detail ...

To get you started :

1. Open the code template editor (Ctrl+Shift+P)
2. Select your language
3. Start filling in the required templates. Note that the default templates are all blank for custom languages, to begin with. Edit and save your own versions.

I'd recommend using the templates from one of the existing lanuages as a guide. Also, start from the File level template and work down to the class, attribute level etc.

Regards,
Ben

angel-o-sphere

  • EA User
  • **
  • Posts: 112
  • Karma: +0/-0
    • View Profile
Re: Adding a further language to the code generati
« Reply #3 on: March 11, 2004, 04:19:40 am »
Hm, strange, that was the problem.

When I tried that first, my language did not show up there(under configuration / code generation templates).

Obviously I made some error there.

Thanx!!

angel'o'sphere