Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/Annotation.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 | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
119 | 119 |
120 | 120 |
121 /** | 121 /** |
122 * Creates a new annotation that is not persistent and type less. | 122 * Creates a new annotation that is not persistent and type less. |
123 */ | 123 */ |
124 protected Annotation() { | 124 protected this() { |
125 this(null, false, null); | 125 this(null, false, null); |
126 } | 126 } |
127 | 127 |
128 /** | 128 /** |
129 * Creates a new annotation with the given properties. | 129 * Creates a new annotation with the given properties. |
132 * @param isPersistent <code>true</code> if this annotation is | 132 * @param isPersistent <code>true</code> if this annotation is |
133 * persistent, <code>false</code> otherwise | 133 * persistent, <code>false</code> otherwise |
134 * @param text the text associated with this annotation | 134 * @param text the text associated with this annotation |
135 * @since 3.0 | 135 * @since 3.0 |
136 */ | 136 */ |
137 public Annotation(String type, bool isPersistent, String text) { | 137 public this(String type, bool isPersistent, String text) { |
138 fType= type; | 138 fType= type; |
139 fIsPersistent= isPersistent; | 139 fIsPersistent= isPersistent; |
140 fText= text; | 140 fText= text; |
141 } | 141 } |
142 | 142 |
144 * Creates a new annotation with the given persistence state. | 144 * Creates a new annotation with the given persistence state. |
145 * | 145 * |
146 * @param isPersistent <code>true</code> if persistent, <code>false</code> otherwise | 146 * @param isPersistent <code>true</code> if persistent, <code>false</code> otherwise |
147 * @since 3.0 | 147 * @since 3.0 |
148 */ | 148 */ |
149 public Annotation(bool isPersistent) { | 149 public this(bool isPersistent) { |
150 this(null, isPersistent, null); | 150 this(null, isPersistent, null); |
151 } | 151 } |
152 | 152 |
153 /** | 153 /** |
154 * Returns whether this annotation is persistent. | 154 * Returns whether this annotation is persistent. |