You know, you may be able to use the Class Templates feature for this.
it has a $NAME$ macro.

David Kitner wrote:
> I have built a live template which allows me to add our company disclaimer to the 
>top of java classes.  This disclaimer includes the name of the class.
> The tamplate has a variable named NAME which uses the "className()" expression to 
>get its value.
> 
> Problem:
> For some reason the NAME variable is not replaced when I insert the comment at the 
>top of the file.  It is replaced if it is inserted after the class has been defined.
> I think the className should be available at the top of the file (The name should be 
>the first class defined in the file).
> 
> Thanks.
> 
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 
> 


-- 

Erb

==============================================================
"The only time I like in the morning is afternoon."
     - Russell D. Cooper

"If you do everything, then you're all done."
     - Melissa F. Cooper

"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
     - Larry Wall
==============================================================


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to