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

Bug 509158

Summary: It should be possible to provide a custom implementation of EditingContextAdapter
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: PropertiesAssignee: Pierre-Charles David <pierre-charles.david>
Status: CLOSED FIXED QA Contact: Pierre-Charles David <pierre-charles.david>
Severity: enhancement    
Priority: P3 CC: florian.barbin
Version: 4.1.0Keywords: triaged
Target Milestone: 5.0.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 508968    
Bug Blocks:    

Description Pierre-Charles David CLA 2016-12-13 10:01:48 EST
+++ This bug was initially created as a clone of Bug #508968 +++

The EditingContextAdapter interface is the central point which defines how the Sirius and EEF runtimes coordinate to manage the lifecycle of the properties views (once they are created). It allows Sirius to request for the properties views to refresh when "interesting" changes happen, and it allows EEF to ask Sirius to perform model changes corresponding to user actions in the appropriate context from the point of view of Sirius.

The implementation used (TransactionalEditingDomainContextAdapter) is currently hardcoded, but it should be possible for downstream Sirius-based products to override it with their own (based on TransactionalEditingDomainContextAdapter or not) to customize/extend this coordination.
Comment 1 Pierre-Charles David CLA 2016-12-13 10:02:09 EST
Clone to report the change on master for 5.0.
Comment 2 Pierre-Charles David CLA 2017-01-03 10:51:42 EST
Fixed by 7fd859eca0abacfe1adc633e3e2a767583ad53db (for some reason Eclipse Genie did not see it).
Comment 3 Pierre-Charles David CLA 2017-05-19 04:33:44 EDT
Verified on the code.
Comment 4 Pierre-Charles David CLA 2017-06-29 03:31:31 EDT
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details.