Book a Demo

Author Topic: Change generated code format?  (Read 4705 times)

rickr

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Change generated code format?
« on: April 23, 2003, 07:48:14 pm »
Is there any way to change the format of generated code? I've searched the help file and the discussion forums, as well as looked through all the dialogs I can find and so far I haven't found anything.

Thanks.

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Change generated code format?
« Reply #1 on: April 23, 2003, 08:54:46 pm »
Hi rickr,

There are a few things you can change under the Generate
Dialogue->Advanced (comment style, get/set prefix ...).
Beyond these, we are working on code generation templates which will allow for greater flexibility in customizing the generated code.  These should be released over the next couple of months or so.

Ben.

rickr

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Change generated code format?
« Reply #2 on: April 23, 2003, 09:19:54 pm »
Ben,

Thanks for the quick reply. I'm glad I wasn't missing something obvious.

I realize that I wasn't very specific when I said "format", and the code generation templates you mentioned would most likely be what I'm looking for (brace positioning, indent increment, spacing before/after parens, etc. for C++/Java). I realize I can run the generated code through a formatter, but 1) I haven't found a formatter that really works the way I want; 2) it gets old having to rerun it all the time ;-)

Thanks again, and I look forward to the generation templates.

Rick

dknox

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Change generated code format?
« Reply #3 on: May 03, 2003, 09:49:57 am »
IMO, it would be great if EA supported the current XMI and XSLT. If EA supplied a foundation of templates and leveraged an open source XSLT generator, users could simply export the model to XMI and run the XSLT generator. Users coudl augment templates to suite their style and language!. Lot's easier than trying to make changes to binary generators and keep up with feature requests.

my 2p