Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: fmaymone 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!!
-
Are you talking of code gen or RTF?
-
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!!!
-
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
-
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.
-
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