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

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 25f1f92fa3df
children
line wrap: on
line diff
--- a/dwtx/jface/text/TextPresentation.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/TextPresentation.d	Mon Sep 08 00:51:37 2008 +0200
@@ -61,7 +61,6 @@
 import dwtx.jface.text.IDocumentExtension4; // packageimport
 import dwtx.jface.text.IDocumentExtension2; // packageimport
 import dwtx.jface.text.IDocumentPartitionerExtension2; // packageimport
-import dwtx.jface.text.Assert; // packageimport
 import dwtx.jface.text.DefaultInformationControl; // packageimport
 import dwtx.jface.text.IWidgetTokenOwnerExtension; // packageimport
 import dwtx.jface.text.DocumentClone; // packageimport
@@ -155,6 +154,7 @@
 
 import dwt.dwthelper.utils;
 import dwtx.dwtxhelper.Collection;
+import tango.core.Exception;
 
 import dwt.DWT;
 import dwt.custom.StyleRange;
@@ -239,7 +239,7 @@
                 StyleRange r= cast(StyleRange) fRanges.get(fIndex++);
                 return createWindowRelativeRange(fWindow, r);
             } catch (ArrayIndexOutOfBoundsException x) {
-                throw new NoSuchElementException();
+                throw new NoSuchElementException(null);
             } finally {
                 if (fSkipDefaults)
                     computeIndex();
@@ -321,7 +321,7 @@
      */
     public this(IRegion extent, int sizeHint) {
         this(sizeHint);
-        Assert.isNotNull(extent);
+        Assert.isNotNull(cast(Object)extent);
         fExtent= extent;
     }
 
@@ -630,7 +630,7 @@
     private void checkConsistency(StyleRange range) {
 
         if (range is null)
-            throw new IllegalArgumentException();
+            throw new IllegalArgumentException(null);
 
         if (fDefaultRange !is null) {