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

Bug 461297

Summary: Automatically refresh the visualization/layout when changes are made to the underlying Graph.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.10.0 (Mars) M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 461296    
Bug Blocks:    

Description Matthias Wienand CLA 2015-03-03 07:12:31 EST
Currently, the user has to manually initiate the synchronization of controller parts and content model elements when the content is not completely replaced. This should be done by Zest.FX automatically by listening for changes on the underlying Graph and refreshing/re-layouting accordingly.
Comment 1 Matthias Wienand CLA 2015-03-11 08:51:07 EDT
I implemented automatic refresh using the property change mechanism provided by GEF4 Graph: The individual content parts (NodeContentPart, EdgeContentPart, GraphContentPart) register property change listeners on their content objects (Node, Edge, and Graph, respectively). When the attributes of a Node, Edge, or Graph change, the corresponding visual is refreshed. When the nodes or edges of a Graph change, the content parts are synchronized with the content objects. When the content synchronization is finished, a re-layout is triggered.

The code is published on the master branch, therefore I resolve this ticket as fixed for 3.10.0M6.