You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					35 lines
				
				2.5 KiB
			
		
		
			
		
	
	
					35 lines
				
				2.5 KiB
			| 
											4 years ago
										 | <templateSet group="DebuggerX"> | ||
|  |   <template name="swii" value="switch ($getid$) {
    case $viewid$:
        $options$
    break;

}" description="Auto-switch" toReformat="false" toShortenFQNames="true"> | ||
|  |     <variable name="getid" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="viewid" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="options" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <context> | ||
|  |       <option name="JAVA_CODE" value="true" /> | ||
|  |     </context> | ||
|  |   </template> | ||
|  |   <template name="mhan" value="Handler mHandler = new Handler(){
    @Override
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        $options$
    }
};" description="MyHandler" toReformat="false" toShortenFQNames="true" useStaticImport="true"> | ||
|  |     <variable name="options" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <context> | ||
|  |       <option name="JAVA_CODE" value="true" /> | ||
|  |     </context> | ||
|  |   </template> | ||
|  |   <template name="ssf" value="/// $comment$
static String $name$($params$) => '$baseURL/$path$/';" description="static String function" toReformat="false" toShortenFQNames="true"> | ||
|  |     <variable name="name" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="params" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="path" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="comment" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <context> | ||
|  |       <option name="DART" value="true" /> | ||
|  |     </context> | ||
|  |   </template> | ||
|  |   <template name="resp" value="/// $comment$
Future<$type$> $name$({@required $params$}) => _post<$type$>(
    $path$,
    (json) => $type$(json),
    data: {'$params$': $params$},
);" description="create a request function" toReformat="false" toShortenFQNames="true"> | ||
|  |     <variable name="type" expression="" defaultValue=""TYPE"" alwaysStopAt="true" /> | ||
|  |     <variable name="name" expression="lowercaseAndDash(type)" defaultValue="" alwaysStopAt="false" /> | ||
|  |     <variable name="params" expression="" defaultValue=""PARAMS"" alwaysStopAt="true" /> | ||
|  |     <variable name="path" expression="concat("Urls.", lowercaseAndDash(dartClassName()), ".", lowercaseAndDash(type))" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <variable name="comment" expression="" defaultValue="" alwaysStopAt="true" /> | ||
|  |     <context> | ||
|  |       <option name="DART" value="true" /> | ||
|  |     </context> | ||
|  |   </template> | ||
|  | </templateSet> |