Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/AnnotationRulerColumn.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 |
---|---|
172 */ | 172 */ |
173 private static class Tuple { | 173 private static class Tuple { |
174 Annotation annotation; | 174 Annotation annotation; |
175 Position position; | 175 Position position; |
176 | 176 |
177 Tuple(Annotation annotation, Position position) { | 177 this(Annotation annotation, Position position) { |
178 this.annotation= annotation; | 178 this.annotation= annotation; |
179 this.position= position; | 179 this.position= position; |
180 } | 180 } |
181 } | 181 } |
182 | 182 |
269 * @param model the annotation model to get the annotations from | 269 * @param model the annotation model to get the annotations from |
270 * @param width the width of the vertical ruler | 270 * @param width the width of the vertical ruler |
271 * @param annotationAccess the annotation access | 271 * @param annotationAccess the annotation access |
272 * @since 3.0 | 272 * @since 3.0 |
273 */ | 273 */ |
274 public AnnotationRulerColumn(IAnnotationModel model, int width, IAnnotationAccess annotationAccess) { | 274 public this(IAnnotationModel model, int width, IAnnotationAccess annotationAccess) { |
275 this(width, annotationAccess); | 275 this(width, annotationAccess); |
276 fAllowSetModel= false; | 276 fAllowSetModel= false; |
277 fModel= model; | 277 fModel= model; |
278 fModel.addAnnotationModelListener(fInternalListener); | 278 fModel.addAnnotationModelListener(fInternalListener); |
279 } | 279 } |
283 * | 283 * |
284 * @param width the width of the vertical ruler | 284 * @param width the width of the vertical ruler |
285 * @param annotationAccess the annotation access | 285 * @param annotationAccess the annotation access |
286 * @since 3.0 | 286 * @since 3.0 |
287 */ | 287 */ |
288 public AnnotationRulerColumn(int width, IAnnotationAccess annotationAccess) { | 288 public this(int width, IAnnotationAccess annotationAccess) { |
289 fWidth= width; | 289 fWidth= width; |
290 if (annotationAccess instanceof IAnnotationAccessExtension) | 290 if (annotationAccess instanceof IAnnotationAccessExtension) |
291 fAnnotationAccessExtension= (IAnnotationAccessExtension) annotationAccess; | 291 fAnnotationAccessExtension= (IAnnotationAccessExtension) annotationAccess; |
292 } | 292 } |
293 | 293 |
295 * Constructs this column with the given arguments. | 295 * Constructs this column with the given arguments. |
296 * | 296 * |
297 * @param model the annotation model to get the annotations from | 297 * @param model the annotation model to get the annotations from |
298 * @param width the width of the vertical ruler | 298 * @param width the width of the vertical ruler |
299 */ | 299 */ |
300 public AnnotationRulerColumn(IAnnotationModel model, int width) { | 300 public this(IAnnotationModel model, int width) { |
301 fWidth= width; | 301 fWidth= width; |
302 fAllowSetModel= false; | 302 fAllowSetModel= false; |
303 fModel= model; | 303 fModel= model; |
304 fModel.addAnnotationModelListener(fInternalListener); | 304 fModel.addAnnotationModelListener(fInternalListener); |
305 } | 305 } |
307 /** | 307 /** |
308 * Constructs this column with the given width. | 308 * Constructs this column with the given width. |
309 * | 309 * |
310 * @param width the width of the vertical ruler | 310 * @param width the width of the vertical ruler |
311 */ | 311 */ |
312 public AnnotationRulerColumn(int width) { | 312 public this(int width) { |
313 fWidth= width; | 313 fWidth= width; |
314 } | 314 } |
315 | 315 |
316 /* | 316 /* |
317 * @see IVerticalRulerColumn#getControl() | 317 * @see IVerticalRulerColumn#getControl() |