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

Bug 472650

Summary: Enhance FXView and FXEditor to support working with multiple FXViewers.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.1.0   
Target Milestone: 3.10.1 (Mars SR1) M2   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-07-14 14:27:15 EDT
While the domain is capable of dealing with several FXViewers, the FXView and FXEditor classes are currently bound to a single viewer. 

If the restriction that multiple FXViewers can hook their visuals into a single scene (see bug #472646 is removed), there is no obstacle preventing to combine several viewers into a single FXView or FXEditor.

We should enable that both classes can also be easily used with several FXViewers.
Comment 1 Alexander Nyßen CLA 2015-07-21 14:18:09 EDT
I pushed the following changes to origin/master:
- Introduced hookViewers() hook method (with default implementation based on the single default content viewer).
- Introduced populateViewers() hook method (with default implementation based on the single default content viewer).

Clients can overwrite these hook methods to hook/populate several viewers (e.g. a palette viewer). Resolving as fixed in 3.10.1 M2.