Mercurial > projects > dwt-addons
comparison dwtx/jface/resource/JFaceResources.d @ 182:46b175eeced4
added assert
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Oct 2008 15:01:10 +0200 |
parents | 04b47443bb01 |
children |
comparison
equal
deleted
inserted
replaced
181:8116a58394c3 | 182:46b175eeced4 |
---|---|
215 * @param toQuery | 215 * @param toQuery |
216 * display to query | 216 * display to query |
217 * @return the global resource manager for the given display | 217 * @return the global resource manager for the given display |
218 */ | 218 */ |
219 public static ResourceManager getResources(Display toQuery) { | 219 public static ResourceManager getResources(Display toQuery) { |
220 assert( toQuery ); | |
220 init_registries(); | 221 init_registries(); |
221 ResourceManager reg = cast(ResourceManager) registries.get(toQuery); | 222 ResourceManager reg = cast(ResourceManager) registries.get(toQuery); |
222 | 223 |
223 if (reg is null) { | 224 if (reg is null) { |
224 DeviceResourceManager mgr = new DeviceResourceManager(toQuery); | 225 DeviceResourceManager mgr = new DeviceResourceManager(toQuery); |