-
Notifications
You must be signed in to change notification settings - Fork 267
/
AndroidExternal.xml
47 lines (46 loc) · 3.08 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
<?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="JAVA_DECLARATION" value="true" />
</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="JAVA_DECLARATION" value="true" />
</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="JAVA_STATEMENT" value="true" />
</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="JAVA_STATEMENT" value="true" />
</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="JAVA_STATEMENT" value="true" />
</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>