Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 506337 - Only the ContentPartPool of the most recently switched to viewer is injected into the viewer's content parts' ContentBehavior.
Summary: Only the ContentPartPool of the most recently switched to viewer is injected ...
Status: RESOLVED FIXED
Alias: None
Product: GEF
Classification: Tools
Component: GEF MVC (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 5.0.0 (Oxygen) M3   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-21 08:16 EDT by Matthias Wienand CLA
Modified: 2016-10-21 09:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Wienand CLA 2016-10-21 08:16:49 EDT
The order in which the adaptable scope is switched to the different viewers decides which ContentPartPool is injected into the ContentBehaviors of the content parts contained within the respective viewer.

While different ContentPartPools are injected into the root parts of the different viewers, only the ContentPartPool of the viewer to which the adaptable scope was most recently switched to is injected into the visual parts of all viewers.

This could be solved by injecting the ContentPartPool as an adapter into the root part, instead of using Guice member injection to directly inject it into ContentBehavior.
Comment 1 Matthias Wienand CLA 2016-10-21 09:44:53 EDT
I changed the ContentPartPool to extend IAdaptable.Bound.Impl<IRootPart<? extends Node>>, changed the bindings within MvcFxModule accordingly, and updated the ContentBehavior to query the ContentPartPool from the IRootPart of its host. The code is published on the master branch, therefore, I resolve this ticket as fixed for 5.0.0 M3.