Book a Demo

Author Topic: code template - curly bracket  (Read 2604 times)

chanra

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
code template - curly bracket
« on: May 09, 2006, 05:16:19 pm »
I just downloaded a trial version today
and I've been trying to control how the curly brackets are generated. Specifically, I want the curly brackets to be on a new line.

How do I do this? I searched this forum and I saw a reference to %PI="  "%

I tried playing around with it, and also looked at the online help -- but I still can't get it to work.

Pointers would be much appreciated.
Thank you.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: code template - curly bracket
« Reply #1 on: May 09, 2006, 06:48:36 pm »
I don't know what you've tried, but it's almost certainly me that posted the solution last time.

What you need to do is remove the %PI=" "% from the Class, Namespace and Operation templates.

So the class template
Code: [Select]
%ClassNotes%
%PI=" "%
%ClassDeclaration%
%ClassBody%
becomes
Code: [Select]
%ClassNotes%
%ClassDeclaration%
%ClassBody%

If you're wanting it for C#, I posted some templates to the EA User Group to do this.  http://sharepoint.knowledgerecovery.com/external/eaug/EA%20Code%20Generation%20Templates/Forms/AllItems.aspx