Project: Eclipse_Platform_UI
Bug 134879 [DataBinding] Provide toString implementations for implementations of IDiff
Reported: 2006-04-04 17:12:04 | Status: resolved fixed

It can be beneficial for a developer when attempting to debug or learn Data Binding to see what the diffs are that are being sent back and forth through the pipeline. I'm attaching implementations of toString() for: * ValueDiff * SetDiff * ListDiff * ListDiffEntry I didn't create an implementation for MappingDiff because I'm not positive of its usage and what would be an appropriate toString implementation. When I figure that out I'll attach it as well. I'm also attaching a TestCase that asserts that NPEs aren't thrown when any of the properties of these classes are null.

Files changed in fix:
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/observable/list/ListDiff.java bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/observable/list/ListDiffEntry.java bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/observable/set/SetDiff.java bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/observable/value/ValueDiff.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindingTestSuite.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/IDiffsTest.java