Live Templates: Substring of a Variable?

I'd like to create a live template where one of the variables is set to the name of the enclosing class, but without the last word, e.g., I'd like the variable to be Account where the containing class is AccountBuilder.

Here's the template I have:



So I'd like $BEAN$ to be the name of the class (e.g., AccountBuilder), but without the Builder at the end. Is there a way to do this out of the box? If not, is there a way to add a method to support this somehow?

;ted

(I posted this in documentation, but that forum doesn't seem to get many visits...)

1 comment

Apparently the answer is, no. I guess I'll file a request!

;ted

0

Please sign in to leave a comment.