diff dwtx/ui/forms/widgets/Section.d @ 104:04b47443bb01

Reworked the collection uses to make use of a wrapper collection that is compatible to the Java Collections. These new wrappers now use the tango.util.containers instead of the tango.util.collections.
author Frank Benoit <benoit@tionex.de>
date Thu, 07 Aug 2008 15:01:33 +0200
parents 0953c252a764
children
line wrap: on
line diff
--- a/dwtx/ui/forms/widgets/Section.d	Sun Aug 03 17:01:51 2008 +0200
+++ b/dwtx/ui/forms/widgets/Section.d	Thu Aug 07 15:01:33 2008 +0200
@@ -34,8 +34,7 @@
 import dwtx.ui.internal.forms.widgets.FormUtil;
 
 import dwt.dwthelper.utils;
-
-import tango.util.collection.HashMap;
+import dwtx.dwtxhelper.Collection;
 
 /**
  * A variation of the expandable composite that adds optional description below
@@ -67,7 +66,7 @@
 
     private Control separator;
 
-    private HashMap!(String,Object) titleColors;
+    private Hashtable titleColors;
 
     private static const String COLOR_BG = "bg"; //$NON-NLS-1$
 
@@ -339,8 +338,8 @@
         if (color is null)
             return;
         if (titleColors is null)
-            titleColors = new HashMap!(String,Object);
-        titleColors.add(key, color);
+            titleColors = new Hashtable();
+        titleColors.put(key, color);
     }
 
     protected void onPaint(PaintEvent e) {