Live Templates - Substring...

I'm writing up a live template and want to return a sub-string of the
classname.

My template currently has $CLASSNAME$ which is bound to className().

The classes in question are being named FooEJB and I want to template to
return Foo on its own. Possible?

0
3 comments
Avatar
Permanently deleted user


"Mark Derricutt" <mark@talios.com> wrote in message
news:pan.2003.12.18.04.18.34.193488@talios.com...

I'm writing up a live template and want to return a sub-string of the
classname.

>

My template currently has $CLASSNAME$ which is bound to className().

>

The classes in question are being named FooEJB and I want to template to
return Foo on its own. Possible?

>
No, currently not.


0
Avatar
Permanently deleted user

On Fri, 19 Dec 2003 12:27:38 +0300, Evgueny Vigdorchik wrote:

No, currently not.


Darn :( Ah well...

0
Avatar
Permanently deleted user

Not possible.

I think a great enhancement to Live Templates would be the ability to define one's own expressions, so that one is not limited to the 15 or so built-in ones currently offered (className() being one of them).

How about Intellij implementing this enhancement by making use of XDoclet? Allow users to add custom xdoclet modules and have the methods of those modules automatically added to that expression list.

0

Please sign in to leave a comment.