diff dwtx/jface/bindings/keys/formatting/AbstractKeyFormatter.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 7a3e6c1a4eae
children
line wrap: on
line diff
--- a/dwtx/jface/bindings/keys/formatting/AbstractKeyFormatter.d	Sun Aug 03 17:01:51 2008 +0200
+++ b/dwtx/jface/bindings/keys/formatting/AbstractKeyFormatter.d	Thu Aug 07 15:01:33 2008 +0200
@@ -15,8 +15,6 @@
 
 import dwtx.jface.bindings.keys.formatting.IKeyFormatter;
 
-import tango.util.collection.HashSet;
-import tango.util.collection.model.Set;
 
 import dwtx.jface.bindings.keys.IKeyLookup;
 import dwtx.jface.bindings.keys.KeyLookupFactory;
@@ -25,6 +23,7 @@
 import dwtx.jface.util.Util;
 
 import dwt.dwthelper.utils;
+import dwtx.dwtxhelper.Collection;
 import dwt.dwthelper.ResourceBundle;
 
 /**
@@ -69,14 +68,14 @@
      * The keys in the resource bundle. This is used to avoid missing resource
      * exceptions when they aren't necessary.
      */
-    private static const Set!(String) resourceBundleKeys;
+    private static const Set resourceBundleKeys;
 
     static this() {
         RESOURCE_BUNDLE = ResourceBundle.getBundle(
             getImportData!("dwtx.jface.bindings.keys.formatting.AbstractKeyFormatter.properties"));
-        resourceBundleKeys = new HashSet!(String);
-        foreach( key; RESOURCE_BUNDLE.getKeys()){
-            resourceBundleKeys.add(key);
+        resourceBundleKeys = new HashSet();
+        foreach( element; RESOURCE_BUNDLE.getKeys()){
+            resourceBundleKeys.add(stringcast(element));
         }
     }