Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/Template.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 | 51e6e63f930e |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/Template.d Sun Aug 24 01:13:39 2008 +0200 +++ b/dwtx/jface/text/templates/Template.d Sun Aug 24 01:29:22 2008 +0200 @@ -64,7 +64,7 @@ /** * Creates an empty template. */ - public Template() { + public this() { this("", "", "", "", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } @@ -73,7 +73,7 @@ * * @param template the template to copy */ - public Template(Template template) { + public this(Template template) { this(template.getName(), template.getDescription(), template.getContextTypeId(), template.getPattern(), template.isAutoInsertable()); } @@ -86,7 +86,7 @@ * @param pattern the template pattern * @deprecated as of 3.1 replaced by {@link #Template(String, String, String, String, bool)} */ - public Template(String name, String description, String contextTypeId, String pattern) { + public this(String name, String description, String contextTypeId, String pattern) { this(name, description, contextTypeId, pattern, true); // templates are auto insertable per default } @@ -100,7 +100,7 @@ * @param isAutoInsertable the auto insertable property of the template * @since 3.1 */ - public Template(String name, String description, String contextTypeId, String pattern, bool isAutoInsertable) { + public this(String name, String description, String contextTypeId, String pattern, bool isAutoInsertable) { Assert.isNotNull(description); fDescription= description; fName= name;