Created
October 9, 2011 15:03
-
-
Save luiscberrocal/1273781 to your computer and use it in GitHub Desktop.
Eclipse Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<templates> | |
<template autoinsert="true" context="java" deleted="false" description="Debug log" enabled="true" name="debug_log">Log.d(TAG + ".${enclosing_method}:" + Thread.currentThread().getStackTrace()[2].getLineNumber(), ${msg});</template> | |
<template autoinsert="true" context="java" deleted="false" description="Singleton pattern" enabled="true" name="singleton">private static ${enclosing_type} instance; | |
public static ${enclosing_type} getInstance(){ | |
if(instance == null){ | |
instance = new ${enclosing_type}(); | |
} | |
return instance; | |
}</template> | |
<template autoinsert="true" context="java" deleted="false" description="Inserts the tag with de class name" enabled="true" name="tag_android">public static String TAG = "${enclosing_type}";</template> | |
<template autoinsert="false" context="java-members" deleted="false" description="test method" enabled="true" id="org.eclipse.jdt.ui.templates.test" name="test">public void test${name}() throws Exception { | |
${cursor} | |
}</template> | |
<template autoinsert="true" context="java" deleted="false" description="" enabled="true" name="test_log_method">Log.d(TAG, "**${enclosing_type}.${enclosing_method}");</template> | |
</templates> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment