Can't get live template variables to work when in body of class

I created a small template to insert a method, with some variables. When I insert it, the cursor is placed at the first variable location, but does not advance to the others. If I insert it inside another method, it does advance to each of the variables. Is this a bug or "feature" or am I just missing something?

protected void initRTCommandInterface () {
addRTCommandInterfaceItem ("$CMD$ | $PARAM$(type=string; required; valuerequired) "
+ "?(help=\"$HELP$.\")", new Command()
{public Status execute (String line, Map params, AgentUI ui)
{return $CODE$;}});
Variables are each defined as the expression "capitalize(String)". (Works the same when no expression used)

Please sign in to leave a comment.