Mercurial > projects > dwt-addons
comparison dwtx/jface/resource/ColorRegistry.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | 6c14e54dfc11 |
children | 46a6e0e6ccd4 |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
185 } | 185 } |
186 | 186 |
187 /* (non-Javadoc) | 187 /* (non-Javadoc) |
188 * @see dwtx.jface.resource.ResourceRegistry#getKeySet() | 188 * @see dwtx.jface.resource.ResourceRegistry#getKeySet() |
189 */ | 189 */ |
190 public SetView!(String) getKeySet() { | 190 public override SetView!(String) getKeySet() { |
191 auto res = new HashSet!(String); | 191 auto res = new HashSet!(String); |
192 foreach( k,v; stringToRGB ){ | 192 foreach( k,v; stringToRGB ){ |
193 res.add(k); | 193 res.add(k); |
194 } | 194 } |
195 return res; | 195 return res; |
218 } | 218 } |
219 | 219 |
220 /* (non-Javadoc) | 220 /* (non-Javadoc) |
221 * @see dwtx.jface.resource.ResourceRegistry#clearCaches() | 221 * @see dwtx.jface.resource.ResourceRegistry#clearCaches() |
222 */ | 222 */ |
223 protected void clearCaches() { | 223 protected override void clearCaches() { |
224 foreach( k, v; stringToColor ){ | 224 foreach( k, v; stringToColor ){ |
225 v.dispose(); | 225 v.dispose(); |
226 } | 226 } |
227 foreach( v; staleColors ){ | 227 foreach( v; staleColors ){ |
228 v.dispose(); | 228 v.dispose(); |
234 } | 234 } |
235 | 235 |
236 /* (non-Javadoc) | 236 /* (non-Javadoc) |
237 * @see dwtx.jface.resource.ResourceRegistry#hasValueFor(java.lang.String) | 237 * @see dwtx.jface.resource.ResourceRegistry#hasValueFor(java.lang.String) |
238 */ | 238 */ |
239 public bool hasValueFor(String colorKey) { | 239 public override bool hasValueFor(String colorKey) { |
240 return stringToRGB.containsKey(colorKey); | 240 return stringToRGB.containsKey(colorKey); |
241 } | 241 } |
242 | 242 |
243 /** | 243 /** |
244 * Hook a dispose listener on the DWT display. | 244 * Hook a dispose listener on the DWT display. |