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

Bug 461296

Summary: Add support for change notifications to GEF4 Graph.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF GraphAssignee: 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:    
Bug Blocks: 461297    

Description Matthias Wienand CLA 2015-03-03 07:06:13 EST
The GEF4 Graph abstractions need to provide a mechanism to notify configurable listeners about their changes. This could, for instance, be implemented using a property change mechanism as in MVC.
Comment 1 Matthias Wienand CLA 2015-03-10 11:03:00 EDT
As the GEF4 Graph abstractions pass collections for nodes, edges, and attributes by reference to the outside, these collections need to be observable to be able to notify others about the changes made to them.

Since Graph should not depend on JavaFX (which provides observable collections), I added two simple implementations for ObservableList and ObservableMap to GEF4 Common and use them within Graph to fire PropertyChangeEvents upon changes.

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