Book a Demo

Author Topic: Where is the template of "InnerClass"??  (Read 4678 times)

chiweis

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Where is the template of "InnerClass"??
« on: March 07, 2007, 07:29:59 am »
Hi.

I's studying the usages of the transformation & code template. I found that there is a strange phenomenon: there is no template name "InnerClass" in the template list, but it does take actions!!
Even if I want to "Add New Custom Template" in the editor, a messagebox shows "A template with that name already exists." Is there anyone that knows where the "InnerClass" is or how to modified it??

Thanks. :)
chiweis

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Where is the template of "InnerClass"
« Reply #1 on: March 07, 2007, 12:52:48 pm »
Lists over InnerClass use the normal class template.

When creating a custom template for inner classes you select the type of Class and therefore get Class__MyTemplateName.  You then do a list of this type from any class template to list over the inner classes of the current class.

Jsc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Where is the template of "InnerClass"
« Reply #2 on: November 22, 2019, 05:37:23 pm »
Lists over InnerClass use the normal class template.

When creating a custom template for inner classes you select the type of Class and therefore get Class__MyTemplateName.  You then do a list of this type from any class template to list over the inner classes of the current class.

Hello Eve,

I have a same question about the template "innerClass". I have created a new "Class" type template named "Class__new". And i want to do a list of all inner classes from a class, so i write %list="InnerClass__new" @separator="\n" @indent="  " %, but unfortunately it did not work. Can you give me some advices, thanks in advance.

ps: Because in template "class" and "classImpl" i have already written other code, so i have to create new class type template.

jsc

Jsc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Where is the template of "InnerClass"
« Reply #3 on: November 22, 2019, 08:42:41 pm »
Lists over InnerClass use the normal class template.

When creating a custom template for inner classes you select the type of Class and therefore get Class__MyTemplateName.  You then do a list of this type from any class template to list over the inner classes of the current class.

Thanks Eve, I fixed the problems :)

jsc