diff dwtx/jface/text/source/projection/ProjectionSummary.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 25f1f92fa3df
children 862b05e0334a
line wrap: on
line diff
--- a/dwtx/jface/text/source/projection/ProjectionSummary.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/source/projection/ProjectionSummary.d	Mon Sep 08 00:51:37 2008 +0200
@@ -104,7 +104,7 @@
     private IAnnotationAccess fAnnotationAccess;
     private List fConfiguredAnnotationTypes;
 
-    private Object fLock= new Object();
+    private Object fLock;
     private IProgressMonitor fProgressMonitor;
     private /+volatile+/ Summarizer fSummarizer;
 
@@ -115,7 +115,9 @@
      * @param annotationAccess the annotation access
      */
     public this(ProjectionViewer projectionViewer, IAnnotationAccess annotationAccess) {
-        super();
+//         super();
+        fLock= new Object();
+
         fProjectionViewer= projectionViewer;
         fAnnotationAccess= annotationAccess;
     }
@@ -290,7 +292,7 @@
                 size= fConfiguredAnnotationTypes.size();
                 map= new HashMap();
                 for (int i= 0; i < size; i++) {
-                    String type= cast(String) fConfiguredAnnotationTypes.get(i);
+                    String type= stringcast( fConfiguredAnnotationTypes.get(i));
                     map.put(type, new AnnotationBag(type));
                 }
             }
@@ -324,7 +326,7 @@
         AnnotationBag bag= cast(AnnotationBag) bagMap.get(annotationType);
         if (bag is null && cast(IAnnotationAccessExtension)fAnnotationAccess ) {
             IAnnotationAccessExtension extension= cast(IAnnotationAccessExtension) fAnnotationAccess;
-            Object[] superTypes= extension.getSupertypes(annotationType);
+            Object[] superTypes= extension.getSupertypes(stringcast(annotationType));
             for (int i= 0; i < superTypes.length && bag is null; i++) {
                 bag= cast(AnnotationBag) bagMap.get(superTypes[i]);
             }