diff dwtx/jface/window/ToolTip.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 7ffeace6c47f
children 3b2353d77f37
line wrap: on
line diff
--- a/dwtx/jface/window/ToolTip.d	Sun Aug 03 17:01:51 2008 +0200
+++ b/dwtx/jface/window/ToolTip.d	Thu Aug 07 15:01:33 2008 +0200
@@ -14,7 +14,6 @@
 
 module dwtx.jface.window.ToolTip;
 
-import tango.util.collection.HashMap;
 
 import dwt.DWT;
 import dwt.events.DisposeEvent;
@@ -33,6 +32,7 @@
 // import dwtx.jface.viewers.ViewerCell;
 
 import dwt.dwthelper.utils;
+import dwtx.dwtxhelper.Collection;
 import dwt.dwthelper.Runnable;
 import tango.core.Thread;
 /**
@@ -53,7 +53,7 @@
 
     private ToolTipOwnerControlListener listener;
 
-    private HashMap!(String,Object) data;
+    private HashMap data;
 
     // Ensure that only one tooltip is active in time
     private static Shell CURRENT_TOOLTIP;
@@ -152,9 +152,9 @@
      */
     public void setData(String key, Object value) {
         if (data is null) {
-            data = new HashMap!(String,Object);
+            data = new HashMap();
         }
-        data.add(key, value);
+        data.put(stringcast(key), value);
     }
 
     /**
@@ -166,7 +166,7 @@
      */
     public Object getData(String key) {
         if (data !is null) {
-            return data.get(key);
+            return data.get(stringcast(key));
         }
         return null;
     }