Created
June 6, 2012 16:53
-
-
Save wadey/2883244 to your computer and use it in GitHub Desktop.
IntelliJ 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
// log4j | |
private static final Logger log = LogManager.getLogger($CLASS_NAME$.class); |
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"?> | |
<application> | |
<component name="ToStringTemplates"> | |
<option name="defaultTempalteName" value="Objects.toStringHelper (Guava)" /> | |
<option name="templates"> | |
<list> | |
<TemplateResource> | |
<option name="fileName" value="Objects.toStringHelper (Guava)" /> | |
<option name="name" value="Objects.toStringHelper (Guava)" /> | |
<option name="template" value="public String toString() { #set ($autoImportPackages = "com.google.common.base.Objects") return Objects.toStringHelper(this) #foreach ($member in $members) .add("$member.name", $member.accessor) #end .toString(); }" /> | |
</TemplateResource> | |
</list> | |
</option> | |
</component> | |
</application> |
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"?> | |
<templateSet group="wadey"> | |
<template name="log4j" value="private static final org.apache.log4j.Logger log = org.apache.log4j.LogManager.getLogger($CLASS_NAME$.class);" description="Set up log4j logger" toReformat="true" toShortenFQNames="true"> | |
<variable name="CLASS_NAME" expression="className()" defaultValue="" alwaysStopAt="false" /> | |
<context> | |
<option name="JAVA_CODE" value="false" /> | |
<option name="JAVA_STATEMENT" value="false" /> | |
<option name="GROOVY" value="false" /> | |
<option name="GROOVY_STATEMENT" value="false" /> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="JAVA_DECLARATION" value="true" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_COMMENT" value="false" /> | |
<option name="GROOVY_DECLARATION" value="false" /> | |
<option name="JAVA_STRING" value="false" /> | |
<option name="JAVA_EXPRESSION" value="false" /> | |
<option name="COMPLETION" value="false" /> | |
<option name="XML" value="false" /> | |
<option name="MAVEN" value="false" /> | |
<option name="OTHER" value="false" /> | |
<option name="GROOVY_EXPRESSION" value="false" /> | |
</context> | |
</template> | |
</templateSet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment