Community
Participate
Working Groups
Build Identifier: 20110916-0149 When setting the eType of a reference from an EClass to null, the change is not well recorded. I could reproduce with the Sample Ecore Editor, when unsetting the eType reference from the properties view : the change is not reverted when using undo. The SetCommand executed from the properties view is not able to undo the change : during prepare it sets the oldValue to SetCommand .UNSET_VALUE because myRef.eIsSet(eGenericType) return false (event if there is a value). Reproducible: Always Steps to Reproduce: It can be reproduced with the Sample Ecore Editor and the following steps. 1. Create an ecore model. 2. Create 2 EClass : c0 and c1 3. Add a new EReference in C0 4. Set its eType to C1 5. Undo/Redo unset/reset the reference : ok 6. Set the eType to null 7. Undo do not change the eType back to C1 : ko
The current behavior is the same with eclipse 3.3, 3.6, 3.7
The fix (specialize set command to record proper old value) has been committed to git for 2.8.
Hi Ed, Thanks for the correction on 2.8 but Indigo SR2 is coming soon. So could you commit the fix for 2.7 ?
Normally I'd not deal with this in the maintenance stream because it's really not all that serious a problem that many people would notice but given that Obeo is asking and considering how much Obeo does for open source, I'll make an exception and commit this fix for the upcoming 2.7.2 release.
That's indeed helping us providing a polished product. Thanks Ed :)
Thanks Ed
The changes are available in the M6 build.