diff 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
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationModel.d	Tue Aug 26 02:46:34 2008 +0200
+++ b/dwtx/jface/text/source/AnnotationModel.d	Wed Aug 27 01:57:58 2008 +0200
@@ -349,7 +349,7 @@
      * The annotation model listener on attached sub-models.
      * @since 3.0
      */
-    private IAnnotationModelListener fModelListener= new InternalModelListener();
+    private IAnnotationModelListener fModelListener;
     /**
      * The current annotation model event.
      * @since 3.0
@@ -359,13 +359,14 @@
      * The modification stamp.
      * @since 3.0
      */
-    private Object fModificationStamp= new Object();
-
+    private Object fModificationStamp;
     /**
      * Creates a new annotation model. The annotation is empty, i.e. does not
      * manage any annotations and is not connected to any document.
      */
     public this() {
+        fModelListener= new InternalModelListener();
+        fModificationStamp= new Object();
         fAnnotations= new AnnotationMap(10);
         fPositions= new IdentityHashMap(10);
         fAnnotationModelListeners= new ArrayList(2);