1 <?xml version="1.0" encoding="UTF-8"?>
2 <templateSet group="surround">
3 <template resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.braces"
4 name="B" toReformat="true" toShortenFQNames="true" value="{$SELECTION$}">
5 <variable alwaysStopAt="false" defaultValue="" expression="" name="SELECTION" />
7 <option name="JAVA_CODE" value="false" />
8 <option name="JAVA_COMMENT" value="false" />
9 <option name="JAVA_STRING" value="false" />
10 <option name="XML" value="false" />
11 <option name="HTML" value="false" />
12 <option name="JSP" value="false" />
13 <option name="COMPLETION" value="false" />
14 <option name="GROOVY" value="true" />
15 <option name="OTHER" value="true" />
18 <template resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.parens"
19 name="P" toReformat="false" toShortenFQNames="true" value="($SELECTION$)">
20 <variable alwaysStopAt="false" defaultValue="" expression="" name="SELECTION" />
22 <option name="JAVA_CODE" value="false" />
23 <option name="JAVA_COMMENT" value="false" />
24 <option name="JAVA_STRING" value="false" />
25 <option name="XML" value="false" />
26 <option name="HTML" value="false" />
27 <option name="JSP" value="false" />
28 <option name="COMPLETION" value="false" />
29 <option name="GROOVY" value="true" />
30 <option name="OTHER" value="true" />
33 <template name="C" resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.with.callable"
34 value="java.util.concurrent.Callable<$RET$> callable = new java.util.concurrent.Callable<$RET$>() { public $RET$ call() throws Exception { $SELECTION$ $END$ } };" toReformat="true" toShortenFQNames="true">
35 <variable name="RET" expression="" defaultValue=""java.lang.Object"" alwaysStopAt="true" />
36 <variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
38 <option name="JAVA_CODE" value="true" />
39 <option name="JAVA_COMMENT" value="false" />
40 <option name="JAVA_STRING" value="false" />
41 <option name="XML" value="false" />
42 <option name="HTML" value="false" />
43 <option name="JSP" value="false" />
44 <option name="COMPLETION" value="false" />
45 <option name="OTHER" value="false" />
48 <template name="RL" resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.with.read.lock"
49 value="try { $LOCK$.readLock().lock(); $SELECTION$ } finally { $LOCK$.readLock().unlock(); } " toReformat="true" toShortenFQNames="true">
50 <variable name="LOCK" expression="variableOfType("java.util.concurrent.locks.ReadWriteLock")" defaultValue="" alwaysStopAt="true" />
51 <variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
53 <option name="JAVA_CODE" value="true" />
54 <option name="JAVA_COMMENT" value="false" />
55 <option name="JAVA_STRING" value="false" />
56 <option name="XML" value="false" />
57 <option name="HTML" value="false" />
58 <option name="JSP" value="false" />
59 <option name="COMPLETION" value="false" />
60 <option name="OTHER" value="false" />
63 <template name="WL" resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.surround.with.write.lock"
64 value="try { $LOCK$.writeLock().lock(); $SELECTION$ } finally { $LOCK$.writeLock().unlock(); } " toReformat="true" toShortenFQNames="true">
65 <variable name="LOCK" expression="variableOfType("java.util.concurrent.locks.ReadWriteLock")" defaultValue="" alwaysStopAt="true" />
66 <variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
68 <option name="JAVA_CODE" value="true" />
69 <option name="JAVA_COMMENT" value="false" />
70 <option name="JAVA_STRING" value="false" />
71 <option name="XML" value="false" />
72 <option name="HTML" value="false" />
73 <option name="JSP" value="false" />
74 <option name="COMPLETION" value="false" />
75 <option name="OTHER" value="false" />
78 <template name="I" value="for ($ELEMENT_TYPE$ $VAR$ : $SELECTION$) { $END$ } "
79 resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.iter" toReformat="true" toShortenFQNames="true">
80 <variable name="SELECTION" expression="" defaultValue="" alwaysStopAt="false" />
81 <variable name="ELEMENT_TYPE" expression="iterableComponentType(SELECTION)" defaultValue=""java.lang.Object"" alwaysStopAt="false" />
82 <variable name="VAR" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
84 <option name="JAVA_CODE" value="true" />
85 <option name="JAVA_COMMENT" value="false" />
86 <option name="JAVA_STRING" value="false" />
87 <option name="XML" value="false" />
88 <option name="HTML" value="false" />
89 <option name="JSP" value="false" />
90 <option name="COMPLETION" value="false" />
91 <option name="OTHER" value="false" />