Hi,

Today I tried to create new template.

Template looks like the following:

for(int $INDEX$ = 0; $INDEX$ < $NODELIST$.getLength(); $INDEX$++)
{
  Node node = (Node)$NODELIST$.item($INDEX$);
  $END$
}

I tried and saw, that there is no variable suggestions for $NODELIST$.

I found corresponding .xml and changed one string to
<variable
         alwaysStopAt="true"
         defaultValue="&quot;list&quot;"
         expression="variableOfType(&quot;org.w3c.dom.NodeList&quot;)"
         name="NODELIST"
         />
         
Then I restarted IDEA. It works fine. Template works correctly.

It would be cool to have UI for creating new templates with functionality such
power as standard IDEA's templates.



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to