comparison dwtx/jface/text/source/AnnotationModel.d @ 159:7926b636c282

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 01:57:58 +0200
parents 25f1f92fa3df
children 1a5b8f8129df
comparison
equal deleted inserted replaced
158:25f1f92fa3df 159:7926b636c282
347 private Map fAttachments= new HashMap(); 347 private Map fAttachments= new HashMap();
348 /** 348 /**
349 * The annotation model listener on attached sub-models. 349 * The annotation model listener on attached sub-models.
350 * @since 3.0 350 * @since 3.0
351 */ 351 */
352 private IAnnotationModelListener fModelListener= new InternalModelListener(); 352 private IAnnotationModelListener fModelListener;
353 /** 353 /**
354 * The current annotation model event. 354 * The current annotation model event.
355 * @since 3.0 355 * @since 3.0
356 */ 356 */
357 private AnnotationModelEvent fModelEvent; 357 private AnnotationModelEvent fModelEvent;
358 /** 358 /**
359 * The modification stamp. 359 * The modification stamp.
360 * @since 3.0 360 * @since 3.0
361 */ 361 */
362 private Object fModificationStamp= new Object(); 362 private Object fModificationStamp;
363
364 /** 363 /**
365 * Creates a new annotation model. The annotation is empty, i.e. does not 364 * Creates a new annotation model. The annotation is empty, i.e. does not
366 * manage any annotations and is not connected to any document. 365 * manage any annotations and is not connected to any document.
367 */ 366 */
368 public this() { 367 public this() {
368 fModelListener= new InternalModelListener();
369 fModificationStamp= new Object();
369 fAnnotations= new AnnotationMap(10); 370 fAnnotations= new AnnotationMap(10);
370 fPositions= new IdentityHashMap(10); 371 fPositions= new IdentityHashMap(10);
371 fAnnotationModelListeners= new ArrayList(2); 372 fAnnotationModelListeners= new ArrayList(2);
372 373
373 fDocumentListener= new class() IDocumentListener { 374 fDocumentListener= new class() IDocumentListener {