| Summary: | ImageRegistry is not unique per bundle | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Moritz Post <mpost> | ||||
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | b.muskalla | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.3 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Moritz Post
I think you're talking about different sessions, not different bundles? Each bundle correctly gets it's own instance of the image registry but is only initialized once as bundles get only started once for the whole application. This sounds like a DUP of 281852 for me, Moritz? From what i read in the code, an image registry is loaded on a per class basis. Maybe it is somehow related to individual sessions but it is not related to a specific bundle. Also in practice: I have two bundles both use their image registry respectively. When bundle A has loaded its reg it gets the properly inserted values from its initRegistry method in the reg. Now the second bundle gets to request its reg for the first time and from the getImageRegistry call its receives the registry from bundle A in return. Created attachment 150743 [details]
Returns an ImageRegistry per session per plug-in
Moritz, does that solve your problem?
(In reply to comment #3) > Created an attachment (id=150743) [details] > Returns an ImageRegistry per session per plug-in > > Moritz, does that solve your problem? The first impression is good. i haven't had the time test it in practice. Is it also part of CVS HEAD? (In reply to comment #4) > [ ... ] > The first impression is good. i haven't had the time test it in practice. Is it > also part of CVS HEAD? No, the changes aren't yet in CVS Fixed in CVS HEAD |