Life Template: descendantClassesEnum() question

I recently started using live templates more, and I really like what I can do with them. However, I am a bit annoyed that descendantClassesEnum() isn't working the way I'd like. Does anyone know how I might get the following working:

Template:

   $NAME$.$EXT$
]]>


Variables:
CLASS: descendantClassesEnum("com.opensymphony.xwork.Action")
NAME: decapitalize(CLASS)
EXT: enum("jsp", "ftl", "vm") (default is jsp)

This works great for quickly defining WebWork actions in XML files. Except for one problem: the CLASS select list is only filling out the class name, not the whole package. Is there any way to force this? I tried toggling Shorten FQ names, but it didn't help.

If there isn't any way to do this, perhaps it is time for a feature request :)

2 comments

Hi,

Please, file JIRA request with this bug.

Pat Lightbody wrote:

I recently started using live templates more, and I really like what I can do with them. However, I am a bit annoyed that descendantClassesEnum() isn't working the way I'd like. Does anyone know how I might get the following working:

Template:

>    $NAME$.$EXT$
> ]]>


Variables:
CLASS: descendantClassesEnum("com.opensymphony.xwork.Action")
NAME: decapitalize(CLASS)
EXT: enum("jsp", "ftl", "vm") (default is jsp)

This works great for quickly defining WebWork actions in XML files. Except for one problem: the CLASS select list is only filling out the class name, not the whole package. Is there any way to force this? I tried toggling Shorten FQ names, but it didn't help.

If there isn't any way to do this, perhaps it is time for a feature request :)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.