Project: Eclipse_Platform_UI
Bug 159940 [DataBinding] DataBindingContext shouldn't expose the bindings list as a mutable list
Reported: 2006-10-05 17:29:11 | Status: verified fixed

Currently in DataBindingContext getBindings() exposes the bindings observable list as a mutable observable list. I think we need to make this an unmodifiable list and also add a removeBinding(Binding binding) method to the API of DataBindingContext so that the DBC can remove itself from the binding when removed from the DBC. I'll create a patch soon.

Files changed in fix:
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/DataBindingContext.java tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/DatabindingContextTest.java