Community
Participate
Working Groups
If an attempt is made to register a resource twice by using IResourceManager#register(String), this attempt is ignored. For example: resourceManager.rergister( "org/eclipse/rwt/myResource" ); loads the content from the given resource by using the currently set class loader (setContextLoader()) A second call to register() with the same parameter does nothing. IResourceManager#register(String,InputStream) provides equivalent functionality. It registers the content from the given input stream under the given name. Only if one attempts to register content under a name that was used previously to register something, the second attempt overrides the already registerd content. IResourceManager#register(String,InputStream) should behave like #register(String) and ignore any attempt to register a resource if the resource name was already used.
Created attachment 196851 [details] Test cases to demonstrate the described behavior
With the changes for bug 393077, IResourceManager#register(String) was removed. IResourceManager#register(String,InputStream) still overrides previously registered resources under the same name.