Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/TemplateVariable.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
children | 02cd5f1224d3 |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/TemplateVariable.d Sun Aug 24 01:13:39 2008 +0200 +++ b/dwtx/jface/text/templates/TemplateVariable.d Sun Aug 24 01:29:22 2008 +0200 @@ -82,7 +82,7 @@ * @param defaultValue the default value of the variable * @param offsets the array of offsets of the variable */ - public TemplateVariable(String type, String defaultValue, int[] offsets) { + public this(String type, String defaultValue, int[] offsets) { this(type, new String[] { defaultValue }, offsets); } @@ -94,7 +94,7 @@ * @param defaultValue the default value of the variable * @param offsets the array of offsets of the variable */ - public TemplateVariable(String type, String name, String defaultValue, int[] offsets) { + public this(String type, String name, String defaultValue, int[] offsets) { this(type, name, new String[] { defaultValue }, offsets); } @@ -107,7 +107,7 @@ * @param offsets the array of offsets of the variable * @since 3.3 */ - public TemplateVariable(TemplateVariableType type, String name, String defaultValue, int[] offsets) { + public this(TemplateVariableType type, String name, String defaultValue, int[] offsets) { this(type, name, new String[] { defaultValue }, offsets); } @@ -119,7 +119,7 @@ * @param values the values available at this variable, non-empty * @param offsets the array of offsets of the variable */ - public TemplateVariable(String type, String[] values, int[] offsets) { + public this(String type, String[] values, int[] offsets) { this(type, type, values, offsets); } @@ -131,7 +131,7 @@ * @param values the values available at this variable, non-empty * @param offsets the array of offsets of the variable */ - public TemplateVariable(String type, String name, String[] values, int[] offsets) { + public this(String type, String name, String[] values, int[] offsets) { this(new TemplateVariableType(type), name, values, offsets); } @@ -144,7 +144,7 @@ * @param offsets the array of offsets of the variable * @since 3.3 */ - TemplateVariable(TemplateVariableType type, String name, String[] values, int[] offsets) { + this(TemplateVariableType type, String name, String[] values, int[] offsets) { Assert.isNotNull(type); Assert.isNotNull(name); fType= type;