Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 440340

Summary: IViewer(s) should be injected into domain as adapter.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2014-07-24 08:39:38 EDT
As in case of ITools, IViewers should be injected via adapter map bindings into the IDomain. This will allow to register different viewers under a specific "role" identifier. A query method to retrieve the viewers should be offered in IDomain, as in case of tools. 

It has to be insured that the viewer does not rely on JavaFX during creation time, so it can safely injected into the IDomain (even if the JavaFX toolkit is not yet initialized).
Comment 1 Alexander Nyßen CLA 2014-07-27 11:35:28 EDT
Changed that IViewers are not bound to IDomain as adapters. Ensured that in case of FXViewer, hooking the FXRootPart is not performed before the viewer is hooked (via a scene container).

A client can now inject the IDomain, hook the viewers of the domain, and finally activate the domain.

Adopted the examples. Resolving as fixed.