Bug 159940 [DataBinding] DataBindingContext shouldn't expose the bindings list as a mutable list
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.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/DatabindingContextTest.java
observableValueRMock.getValue();
		observableValueRMock.getValueType();
		Mocks.setLastReturnValue(observableValueRMock, Object.class);
		validatorMock.isValid(null);
		Mocks.startChecking(observableValueRMock);
		Mocks.startChecking(validatorMock);
		dbc.bind(settableValue1, observableValueRMock, new BindSpec(
				identityConverter, identityConverter, validatorMock, null));
		Mocks.verify(observableValueRMock);
	}
	public void testBindValueTarget() {
		observableValueRMock.addValueChangeListener(null);
		observableValueRMock.setValue(null);
		observableValueRMock.getValue();
		observableValueRMock.getValueType();
		Mocks.setLastReturnValue(observableValueRMock, Object.class);
		validatorMock.isValid(null);
		Mocks.startChecking(observableValueRMock);
		Mocks.startChecking(validatorMock);
		dbc.bind(observableValueRMock, settableValue2, new BindSpec(
				identityConverter, identityConverter, validatorMock, null));
	}
	public void testBindValuePropagation() {
		settableValue1.setValue(o1);
		settableValue2.setValue(o2);
		dbc.bind(settableValue1, settableValue2, null);
		assertEquals(o2, settableValue1.getValue());
		settableValue1.setValue(o1);
		assertEquals(o1, settableValue2.getValue());
		settableValue2.setValue(o2);