public static void loadVRMap(String resourceName) { VRMap m = (VRMap) ResourceLocator.loadResource(resourceName); if (m.getPrivateCreator() == null) { VRMap.vrMap = m; } else { VRMap.privVRMaps.put(m.getPrivateCreator(), m); } }
public static void reloadVRMaps() { VRMap newVRMap = null; Hashtable<String, VRMap> newPrivVRMaps = new Hashtable<String, VRMap>(); List<String> list = ResourceLocator.findResources(VRMap.class); for (String s : list) { VRMap m = (VRMap) ResourceLocator.loadResource(s); if (m.getPrivateCreator() == null) { newVRMap = m; } else { newPrivVRMaps.put(m.getPrivateCreator(), m); } } VRMap.vrMap = newVRMap; VRMap.privVRMaps = newPrivVRMaps; }