diff options
author | Ryan D. Brooks | 2011-04-22 20:29:48 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-04-22 20:29:48 +0000 |
commit | 38b1ff989eadb3229fd4c0421102e7a60a4c1554 (patch) | |
tree | 4b470b77fcecf4744ae2eb8c623b7c146a4fe22d /plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml | |
parent | 87a439a142dad13c554519329ebec4da3b406f42 (diff) | |
download | org.eclipse.osee-38b1ff989eadb3229fd4c0421102e7a60a4c1554.tar.gz org.eclipse.osee-38b1ff989eadb3229fd4c0421102e7a60a4c1554.tar.xz org.eclipse.osee-38b1ff989eadb3229fd4c0421102e7a60a4c1554.zip |
refactor: Introduce end-of-line normalization
Diffstat (limited to 'plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml')
-rw-r--r-- | plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml b/plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml index a60f388ae8f..54bc66251c9 100644 --- a/plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml +++ b/plugins/org.eclipse.osee.framework.templates/templates/default-templates.xml @@ -3,12 +3,12 @@ <templates> <template autoinsert="false" context="catchblock_context" deleted="false" description="Code in new catch blocks" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock">OSEELog.logException(getClass(), ${exception_var}, true);</template> -<template name="logger" description="Declares a standard OSEE logger for the current class" id="osee.templates.logger" context="java" enabled="true" autoinsert="true">private static final Logger logger = ConfigUtil.getConfigFactory().getLogger(${enclosing_type}.class);${cursor}</template>
-<template name="notnull" description="Perform a standard parameter check for a null value" id="osee.templates.notnull" context="java" enabled="true" autoinsert="true">if (${variable_name} == null)
- throw new IllegalArgumentException("${variable_name} can not be null");
-${cursor}</template>
-<template name="notempty" description="Perform a standard parameter check for an empty collection " id="osee.templates.notempty" context="java" enabled="true" autoinsert="true">if (${variable_name}.isEmpty())
- throw new IllegalArgumentException("${variable_name} can not be empty");
-${cursor}</template>
+<template name="logger" description="Declares a standard OSEE logger for the current class" id="osee.templates.logger" context="java" enabled="true" autoinsert="true">private static final Logger logger = ConfigUtil.getConfigFactory().getLogger(${enclosing_type}.class);${cursor}</template> +<template name="notnull" description="Perform a standard parameter check for a null value" id="osee.templates.notnull" context="java" enabled="true" autoinsert="true">if (${variable_name} == null) + throw new IllegalArgumentException("${variable_name} can not be null"); +${cursor}</template> +<template name="notempty" description="Perform a standard parameter check for an empty collection " id="osee.templates.notempty" context="java" enabled="true" autoinsert="true">if (${variable_name}.isEmpty()) + throw new IllegalArgumentException("${variable_name} can not be empty"); +${cursor}</template> </templates> |