Book a Demo

Author Topic: curly brackets customization  (Read 4439 times)

LM

  • Guest
curly brackets customization
« on: December 20, 2006, 12:51:54 pm »
C++ code is generated with open curly bracket on the same line as a function name.
Is there any option (template) to generate open curly bracket on the next to the function name line?

Thank you,
LM

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: curly brackets customization
« Reply #1 on: December 20, 2006, 01:05:38 pm »
There isn't an option, but the code templates can be customized to do it.

There's an example of how this has been done for C# on the EA user group.  See http://sharepoint.knowledgerecovery.com/external/eaug/EA%20Code%20Generation%20Templates/Forms/AllItems.aspx

LM

  • Guest
Re: curly brackets customization
« Reply #2 on: December 20, 2006, 01:21:28 pm »
I will certainly try to find out how to change XML file, but I couldn’t find XML file that corresponds to C++ template.

Thank you,

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: curly brackets customization
« Reply #3 on: December 20, 2006, 01:26:42 pm »
Sorry, what I was suggesting when referring you to that file was that by importing it you could see how the changes are made so that you can make them for C++ yourself in the code template editor.

LM

  • Guest
Re: curly brackets customization
« Reply #4 on: December 21, 2006, 10:08:14 am »
Please pardon my illiteracy – I don’t have too much experience with EA yet.
What exactly I have to do with .xml file (C# template). I have tried to import it to Code template editor – Add new Custom Template – it has been imported but I cannot see template text in the editor. Should I replace any template, but which one?
Thank you,

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: curly brackets customization
« Reply #5 on: January 01, 2007, 01:08:10 pm »
You can import it using Tools | Import Reference Data.