Mercurial > projects > dwt-addons
comparison 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 |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
62 private final bool fIsAutoInsertable; | 62 private final bool fIsAutoInsertable; |
63 | 63 |
64 /** | 64 /** |
65 * Creates an empty template. | 65 * Creates an empty template. |
66 */ | 66 */ |
67 public Template() { | 67 public this() { |
68 this("", "", "", "", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ | 68 this("", "", "", "", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
69 } | 69 } |
70 | 70 |
71 /** | 71 /** |
72 * Creates a copy of a template. | 72 * Creates a copy of a template. |
73 * | 73 * |
74 * @param template the template to copy | 74 * @param template the template to copy |
75 */ | 75 */ |
76 public Template(Template template) { | 76 public this(Template template) { |
77 this(template.getName(), template.getDescription(), template.getContextTypeId(), template.getPattern(), template.isAutoInsertable()); | 77 this(template.getName(), template.getDescription(), template.getContextTypeId(), template.getPattern(), template.isAutoInsertable()); |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * Creates a template. | 81 * Creates a template. |
84 * @param description the description of the template | 84 * @param description the description of the template |
85 * @param contextTypeId the id of the context type in which the template can be applied | 85 * @param contextTypeId the id of the context type in which the template can be applied |
86 * @param pattern the template pattern | 86 * @param pattern the template pattern |
87 * @deprecated as of 3.1 replaced by {@link #Template(String, String, String, String, bool)} | 87 * @deprecated as of 3.1 replaced by {@link #Template(String, String, String, String, bool)} |
88 */ | 88 */ |
89 public Template(String name, String description, String contextTypeId, String pattern) { | 89 public this(String name, String description, String contextTypeId, String pattern) { |
90 this(name, description, contextTypeId, pattern, true); // templates are auto insertable per default | 90 this(name, description, contextTypeId, pattern, true); // templates are auto insertable per default |
91 } | 91 } |
92 | 92 |
93 /** | 93 /** |
94 * Creates a template. | 94 * Creates a template. |
98 * @param contextTypeId the id of the context type in which the template can be applied | 98 * @param contextTypeId the id of the context type in which the template can be applied |
99 * @param pattern the template pattern | 99 * @param pattern the template pattern |
100 * @param isAutoInsertable the auto insertable property of the template | 100 * @param isAutoInsertable the auto insertable property of the template |
101 * @since 3.1 | 101 * @since 3.1 |
102 */ | 102 */ |
103 public Template(String name, String description, String contextTypeId, String pattern, bool isAutoInsertable) { | 103 public this(String name, String description, String contextTypeId, String pattern, bool isAutoInsertable) { |
104 Assert.isNotNull(description); | 104 Assert.isNotNull(description); |
105 fDescription= description; | 105 fDescription= description; |
106 fName= name; | 106 fName= name; |
107 Assert.isNotNull(contextTypeId); | 107 Assert.isNotNull(contextTypeId); |
108 fContextTypeId= contextTypeId; | 108 fContextTypeId= contextTypeId; |