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

Bug 451852

Summary: Investigate more consistent usage of generics within MVC and MVC.FX
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-11-17 07:00:58 EST
Up to now, generics are used to refer to the root visual of the used UI toolkit. It would be beneficial if the concrete visual could also be fixed for the edit part. Furthermore, Policies and Behaviors should rather be bound to IVisualPart parameters than to the visual root. We will have to take a look into how we can optimize the usage of generics in the framework.
Comment 1 Alexander Nyßen CLA 2014-11-18 09:56:31 EST
As a first step, added a second parameter (V) to IVisualPart, which depicts the type of the concrete visual, being used by the visual part. 

Next, will re-investigate the need for the VR parameter (it may not be needed in all cases).
Comment 2 Alexander Nyßen CLA 2015-11-21 04:12:53 EST
Having introduced the V parameter, I am not sure if further changes might actually bring a benefit. We could think of introducing C and CR for IContentPart in a similar fashion, but I am unsure if that really brings a benefit. Further, binding the Policies and Behaviors to individual parts may prevent to use the same policy on content and root parts.

Unless some specific use case arises that could really benefit from this, I will treat that as being resolved.