Programable templates [message #150681] |
Thu, 25 March 2004 15:24 |
Eclipse User |
|
|
|
Originally posted by: jeevan.sunkersett.com
Hi,
I am use Hibernate and XDoclet.
To add the XDoclet/ hibernate "java-doc" tags I use the Eclipse template
mechanism a lot.
For eg. one of my template is:
@MyTag name="${enclosing_method}" column="${enclosing_method}"
type="${return_type}" not-null="false" unique="false"
But it does not give "fully" correct stuff.
For instance..... type="${return_type}"
wil put in type="String" or type="Integer"
but I wish to be all lower case not mixed case. The 'S' of String should
be as 'string'.
Any clues to this automatically...such as
the template be:
@MyTag type="lowerCase(${return_type})"
thks
|
|
|
Powered by
FUDForum. Page generated in 0.03388 seconds