Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TextSelection.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 |
---|---|
187 | 187 |
188 | 188 |
189 /** | 189 /** |
190 * Creates an empty text selection. | 190 * Creates an empty text selection. |
191 */ | 191 */ |
192 private TextSelection() { | 192 private this() { |
193 this(null, -1, -1); | 193 this(null, -1, -1); |
194 } | 194 } |
195 | 195 |
196 /** | 196 /** |
197 * Creates a text selection for the given range. This | 197 * Creates a text selection for the given range. This |
200 * method of selection providers. | 200 * method of selection providers. |
201 * | 201 * |
202 * @param offset the offset of the range | 202 * @param offset the offset of the range |
203 * @param length the length of the range | 203 * @param length the length of the range |
204 */ | 204 */ |
205 public TextSelection(int offset, int length) { | 205 public this(int offset, int length) { |
206 this(null, offset, length); | 206 this(null, offset, length); |
207 } | 207 } |
208 | 208 |
209 /** | 209 /** |
210 * Creates a text selection for the given range of the given document. | 210 * Creates a text selection for the given range of the given document. |
213 * | 213 * |
214 * @param document the document whose text range is selected in a viewer | 214 * @param document the document whose text range is selected in a viewer |
215 * @param offset the offset of the selected range | 215 * @param offset the offset of the selected range |
216 * @param length the length of the selected range | 216 * @param length the length of the selected range |
217 */ | 217 */ |
218 public TextSelection(IDocument document, int offset, int length) { | 218 public this(IDocument document, int offset, int length) { |
219 fDocument= document; | 219 fDocument= document; |
220 fOffset= offset; | 220 fOffset= offset; |
221 fLength= length; | 221 fLength= length; |
222 } | 222 } |
223 | 223 |