Any Live Templates - groovyScript() examples

Was looking at the new live templates features in IDEA 9, and see groovyScript as an option when I Edit Variables.  However, I can't seem to find any docs, and playing with it, I can't get it to do anything useful.

Does someone have an example of what this might be used for?

I was hoping to do something like:
     groovyScript( className() - 'Runner' )

where className() is another live templates function.


Dave

2 comments
Comment actions Permalink

Hello David Weiler-Thiessen,

You can't use other live template functions, but you can use the classes
from the IntelliJ IDEA OpenAPI.

I'm not sure if we have any examples of groovyScript usage.

Was looking at the new live templates features in IDEA 9, and see
groovyScript as an option when I Edit Variables. However, I can't
seem to find any docs, and playing with it, I can't get it to do
anything useful.

Does someone have an example of what this might be used for?

I was hoping to do something like:
groovyScript( className() - 'Runner' )
where className() is another live templates function.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thx - I will explore OpenApi to see what it has to offer

0

Please sign in to leave a comment.