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

Bug 476278

Summary: Ensure transactional policies do not commit empty operations.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: Matthias Wienand <matthias.wienand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.1.0   
Target Milestone: 3.10.1 (Mars SR1) RC3   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2015-09-01 04:49:10 EDT
When a transactional policy is asked for an operation to perform its changes, it should return null when no changes are to be applied, so that the undo stack does not contain empty operations.
Comment 1 Matthias Wienand CLA 2015-09-01 05:00:28 EDT
I added checks to the individual commit() methods of the transactional policies to ensure that null is returned when no changes are to be applied by the policy. The code is published on the master branch, therefore, I resolve this ticket as fixed for 3.10.1RC3.