Pavel,

See Tools | Idea Options | Live templates.

Best regards,
Mike Aizatsky.
------------------------------
IntelliJ Software, "Develop with pleasure!" http://www.intellij.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:eap-features-
> [EMAIL PROTECTED]] On Behalf Of Pavel G. Sozonovsky
> Sent: Friday, February 15, 2002 5:47 PM
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] Live templates creating
> 
> 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


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

Reply via email to