forked from keyboardsurfer/idea-live-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AndroidExternal.xml
127 lines (126 loc) · 6.92 KB
/
AndroidExternal.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="AndroidExternal">
<template name="onEventMainThread" value="public void onEventMainThread(final $eventType$ $eventName$) { }" description="Adds onMainThreadEvent method for eventbus" toReformat="true" toShortenFQNames="true">
<variable name="eventType" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="eventName" expression="suggestVariableName()" defaultValue="event" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="false" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="true" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
<option name="COMPLETION" value="false" />
<option name="GROOVY" value="false" />
<option name="GROOVY_EXPRESSION" value="false" />
<option name="GROOVY_STATEMENT" value="false" />
<option name="GROOVY_DECLARATION" value="false" />
<option name="MAVEN" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="onEvent" value="public void onEvent(final $eventType$ $eventName$) { }" description="Adds onEvent method for eventbus" toReformat="true" toShortenFQNames="true">
<variable name="eventType" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="eventName" expression="suggestVariableName()" defaultValue="event" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="false" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="true" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
<option name="COMPLETION" value="false" />
<option name="GROOVY" value="false" />
<option name="GROOVY_EXPRESSION" value="false" />
<option name="GROOVY_STATEMENT" value="false" />
<option name="GROOVY_DECLARATION" value="false" />
<option name="MAVEN" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="CroutonShow" value="Crouton.showText($className$.this, "$text$", Style.$style$);" description="Creates a new Crouton with Crouton.showText" toReformat="true" toShortenFQNames="true">
<variable name="className" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="text" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="style" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="true" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="false" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
<option name="COMPLETION" value="false" />
<option name="GROOVY" value="false" />
<option name="GROOVY_EXPRESSION" value="false" />
<option name="GROOVY_STATEMENT" value="false" />
<option name="GROOVY_DECLARATION" value="false" />
<option name="MAVEN" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="CroutonFragment" value="Crouton.showText(getActivity(), "$text$", Style.$style$, (ViewGroup) getView());" description="Creates a new Crouton for display within a fragment" toReformat="true" toShortenFQNames="true">
<variable name="text" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="style" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="true" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="false" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
<option name="COMPLETION" value="false" />
<option name="GROOVY" value="false" />
<option name="GROOVY_EXPRESSION" value="false" />
<option name="GROOVY_STATEMENT" value="false" />
<option name="GROOVY_DECLARATION" value="false" />
<option name="MAVEN" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="Crouton" value="Crouton.makeText($className$.this, "$text$", Style.$style$).show();" description="Creates a new Crouton" toReformat="true" toShortenFQNames="true">
<variable name="className" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="text" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="style" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JAVA_CODE" value="false" />
<option name="JAVA_STATEMENT" value="true" />
<option name="JAVA_EXPRESSION" value="false" />
<option name="JAVA_DECLARATION" value="false" />
<option name="JAVA_COMMENT" value="false" />
<option name="JAVA_STRING" value="false" />
<option name="COMPLETION" value="false" />
<option name="GROOVY" value="false" />
<option name="GROOVY_EXPRESSION" value="false" />
<option name="GROOVY_STATEMENT" value="false" />
<option name="GROOVY_DECLARATION" value="false" />
<option name="MAVEN" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="createObservable" value="Observable.create(new Observable.OnSubscribe<$TYPE$>() { @Override public void call(Subscriber<? super $TYPE$> subscriber) { } });" description="Create RxJava Observable" toReformat="true" toShortenFQNames="true">
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
</templateSet>