comparison 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
comparison
equal deleted inserted replaced
103:2d6540440fe6 104:04b47443bb01
13 13
14 module dwtx.jface.bindings.keys.formatting.AbstractKeyFormatter; 14 module dwtx.jface.bindings.keys.formatting.AbstractKeyFormatter;
15 15
16 import dwtx.jface.bindings.keys.formatting.IKeyFormatter; 16 import dwtx.jface.bindings.keys.formatting.IKeyFormatter;
17 17
18 import tango.util.collection.HashSet;
19 import tango.util.collection.model.Set;
20 18
21 import dwtx.jface.bindings.keys.IKeyLookup; 19 import dwtx.jface.bindings.keys.IKeyLookup;
22 import dwtx.jface.bindings.keys.KeyLookupFactory; 20 import dwtx.jface.bindings.keys.KeyLookupFactory;
23 import dwtx.jface.bindings.keys.KeySequence; 21 import dwtx.jface.bindings.keys.KeySequence;
24 import dwtx.jface.bindings.keys.KeyStroke; 22 import dwtx.jface.bindings.keys.KeyStroke;
25 import dwtx.jface.util.Util; 23 import dwtx.jface.util.Util;
26 24
27 import dwt.dwthelper.utils; 25 import dwt.dwthelper.utils;
26 import dwtx.dwtxhelper.Collection;
28 import dwt.dwthelper.ResourceBundle; 27 import dwt.dwthelper.ResourceBundle;
29 28
30 /** 29 /**
31 * <p> 30 * <p>
32 * An abstract implementation of a key formatter that provides a lot of common 31 * An abstract implementation of a key formatter that provides a lot of common
67 66
68 /** 67 /**
69 * The keys in the resource bundle. This is used to avoid missing resource 68 * The keys in the resource bundle. This is used to avoid missing resource
70 * exceptions when they aren't necessary. 69 * exceptions when they aren't necessary.
71 */ 70 */
72 private static const Set!(String) resourceBundleKeys; 71 private static const Set resourceBundleKeys;
73 72
74 static this() { 73 static this() {
75 RESOURCE_BUNDLE = ResourceBundle.getBundle( 74 RESOURCE_BUNDLE = ResourceBundle.getBundle(
76 getImportData!("dwtx.jface.bindings.keys.formatting.AbstractKeyFormatter.properties")); 75 getImportData!("dwtx.jface.bindings.keys.formatting.AbstractKeyFormatter.properties"));
77 resourceBundleKeys = new HashSet!(String); 76 resourceBundleKeys = new HashSet();
78 foreach( key; RESOURCE_BUNDLE.getKeys()){ 77 foreach( element; RESOURCE_BUNDLE.getKeys()){
79 resourceBundleKeys.add(key); 78 resourceBundleKeys.add(stringcast(element));
80 } 79 }
81 } 80 }
82 81
83 /* 82 /*
84 * (non-Javadoc) 83 * (non-Javadoc)