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.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							2.4 KiB
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							2.4 KiB
						
					
					
				| <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="DART" value="true" />
 | |
|       <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" deactivated="true">
 | |
|     <variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
 | |
|     <context>
 | |
|       <option name="JAVA_CODE" 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" deactivated="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>
 | |
|   <template name="cc" value="Color(0x$hex$)" description="" toReformat="false" toShortenFQNames="true">
 | |
|     <variable name="hex" expression="groovyScript("_1.startsWith('#') ? _1.substring(7, 9) + _1.substring(1, 3) + _1.substring(3, 5) + _1.substring(5, 7) : ''", clipboard())" defaultValue="" alwaysStopAt="true" />
 | |
|     <context>
 | |
|       <option name="DART" value="true" />
 | |
|     </context>
 | |
|   </template>
 | |
| </templateSet> |