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

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 7926b636c282
children
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationRulerColumn.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/source/AnnotationRulerColumn.d	Mon Sep 08 00:51:37 2008 +0200
@@ -163,7 +163,14 @@
      * Implementation of <code>IRegion</code> that can be reused
      * by setting the offset and the length.
      */
-    private static class ReusableRegion : Position , IRegion {}
+    private static class ReusableRegion : Position , IRegion {
+        public override int getLength(){
+            return super.getLength();
+        }
+        public override int getOffset(){
+            return super.getOffset();
+        }
+    }
 
     /**
      * Pair of an annotation and their associated position. Used inside the paint method
@@ -423,6 +430,9 @@
      */
     private Canvas createCanvas(Composite parent) {
         return new class(parent, DWT.NO_BACKGROUND | DWT.NO_FOCUS)  Canvas {
+            this( Composite p, int s ){
+                super(p,s);
+            }
             /*
              * @see dwt.widgets.Control#addMouseListener(dwt.events.MouseListener)
              * @since 3.0
@@ -967,7 +977,7 @@
      * @since 3.0
      */
     private bool skip(Annotation annotation) {
-        Object annotationType= annotation.getType();
+        Object annotationType= stringcast(annotation.getType());
         Boolean allowed= cast(Boolean) fAllowedAnnotationTypes.get(annotationType);
         if (allowed !is null)
             return !allowed.booleanValue();