Book a Demo

Author Topic: Documentation Template  (Read 3916 times)

fmaymone

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Documentation Template
« on: January 21, 2008, 04:58:20 am »
Hi All.. This is my first day at forum.

Well, At the moment I wanna know how can I create a template for the documentation of a class.

I want that, when I create a method on a class, on the "NOTES", I have some text pre-defined inside.

Something like:
"
@author Fernando Maymone
@date 17/01/2008
@param ActionMapping
@param HttpServletRequest
@param HttpServletResponse
@return ActionForward"

Thanks a Lot!!



thomaskilian

  • Guest
Re: Documentation Template
« Reply #1 on: January 23, 2008, 07:18:04 am »
Are you talking of code gen or RTF?

fmaymone

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Documentation Template
« Reply #2 on: January 23, 2008, 09:39:16 am »
None of them.

I want a template "inside" the EA. I want then when I create a Class, for example, inside the notes of the class, some part of text was pre-written.

I dont know if i am being clear, sorry if not!!!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Documentation Template
« Reply #3 on: January 23, 2008, 10:16:12 am »
I don't think you can do exactly what you want.

However, take a look at Use Template Templates in EA help (look up Template | Element in the index). This might give you something. I do not know if you can successfully set up and enter attributes.

David
No, you can't have it!

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Documentation Template
« Reply #4 on: January 24, 2008, 01:12:59 am »
There is an easy way to do this:

1. Create a package named, i.e "My templates"
2. Create a Class inside
3. Configure the Class with the default values (your notes)
4. Select the package "My templates"
5. Click on menu "Settings | Template package..."
6. Now, the "My templates" package contains the default elements.
7. Create a Class anywhere. The class should contains your notes.

fmaymone

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Documentation Template
« Reply #5 on: January 24, 2008, 03:21:15 am »
Hi Luiz, thanks for the reply..

I have thinked about it, and try to do.. But it only works with Diagrams, not with elements :(

Do you try and works on your machine?

Thanks again