|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: how to add package resource bundles? » » » » Post: how to add package resource bundles? |
Print at Dec 20, 2025, 6:47:32 AM |
| Posted by Alex42 at Dec 26, 2011, 4:35:35 PM |
how to add package resource bundles?Hi, what's the correct way to add a package resource (package.properties) bundle from inside a plugin to the UserPreferences in a way that a panel (defined inside the plugin) can access the bundle? As far as I've seen the plugin's classloader is not registered and therefore not returned from UserPreferences#getResourceClassLoaders(). But adding it to this list does not solve the issue as the used class is FileUserPreferences and this owns a list of classloaders by its own which is initialized only inside updateSupportedLanguages() which is private and not called after all the plugins were loaded. :-( If there's no way to register a plugin's classloader to resolve resources correctly the attached patch would solve the issue. (Hope that I'm able to attach a file as I do not see any way right now )Regards, Alex |
|
|
Current timezone is GMT Dec 20, 2025, 6:47:32 AM |