Mercurial > projects > dwt-addons
comparison dwtx/jface/text/TextPresentation.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 |
---|---|
221 * <code>skipDefaults</code> tells the enumeration to skip all those style ranges | 221 * <code>skipDefaults</code> tells the enumeration to skip all those style ranges |
222 * which define the same style as the presentation's default style range. | 222 * which define the same style as the presentation's default style range. |
223 * | 223 * |
224 * @param skipDefaults <code>false</code> if ranges similar to the default range should be enumerated | 224 * @param skipDefaults <code>false</code> if ranges similar to the default range should be enumerated |
225 */ | 225 */ |
226 protected FilterIterator(bool skipDefaults) { | 226 protected this(bool skipDefaults) { |
227 | 227 |
228 fSkipDefaults= skipDefaults; | 228 fSkipDefaults= skipDefaults; |
229 | 229 |
230 fWindow= fResultWindow; | 230 fWindow= fResultWindow; |
231 fIndex= getFirstIndexInWindow(fWindow); | 231 fIndex= getFirstIndexInWindow(fWindow); |
298 | 298 |
299 | 299 |
300 /** | 300 /** |
301 * Creates a new empty text presentation. | 301 * Creates a new empty text presentation. |
302 */ | 302 */ |
303 public TextPresentation() { | 303 public this() { |
304 fRanges= new ArrayList(50); | 304 fRanges= new ArrayList(50); |
305 } | 305 } |
306 | 306 |
307 /** | 307 /** |
308 * Creates a new empty text presentation. <code>sizeHint</code> tells the | 308 * Creates a new empty text presentation. <code>sizeHint</code> tells the |
309 * expected size of this presentation. | 309 * expected size of this presentation. |
310 * | 310 * |
311 * @param sizeHint the expected size of this presentation | 311 * @param sizeHint the expected size of this presentation |
312 */ | 312 */ |
313 public TextPresentation(int sizeHint) { | 313 public this(int sizeHint) { |
314 Assert.isTrue(sizeHint > 0); | 314 Assert.isTrue(sizeHint > 0); |
315 fRanges= new ArrayList(sizeHint); | 315 fRanges= new ArrayList(sizeHint); |
316 } | 316 } |
317 | 317 |
318 /** | 318 /** |
321 * | 321 * |
322 * @param extent the extent of the created <code>TextPresentation</code> | 322 * @param extent the extent of the created <code>TextPresentation</code> |
323 * @param sizeHint the expected size of this presentation | 323 * @param sizeHint the expected size of this presentation |
324 * @since 3.0 | 324 * @since 3.0 |
325 */ | 325 */ |
326 public TextPresentation(IRegion extent, int sizeHint) { | 326 public this(IRegion extent, int sizeHint) { |
327 this(sizeHint); | 327 this(sizeHint); |
328 Assert.isNotNull(extent); | 328 Assert.isNotNull(extent); |
329 fExtent= extent; | 329 fExtent= extent; |
330 } | 330 } |
331 | 331 |