Bug 139407 [DataBinding] TestMasterDetail not updating when changing Person State
When running org.eclipse.jface.examples.databinding/src/org.eclipse.jface.examples.databinding.nestedselection.TestMasterDetail and editing a Person's State the master table isn't updated when the State's value changes. The reason for this is that the Person object isn't notifying listeners of changes.
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/nestedselection/TestMasterDetail.java
private void bind(Control parent) {
		DataBindingContext dbc = BindingFactory.createContext(parent);
		TableViewer peopleViewer = new TableViewer(personsTable);
		dbc.bind(peopleViewer, new TableModelDescription(new Property(model,
				"personList", Person.class, Boolean.TRUE), new Object[] {
				"name", "state" }), null);
		IObservable selectedPerson = dbc.createObservable(new Property(
				peopleViewer, ViewersProperties.SINGLE_SELECTION));
		dbc.bind(name, new Property(selectedPerson, "name", String.class,
				Boolean.FALSE), null);
		dbc.bind(address, new Property(selectedPerson, "address", String.class,
				Boolean.FALSE), null);
		dbc.bind(city, new Property(selectedPerson, "city", String.class,
				Boolean.FALSE), null);
		dbc.bind(state, new Property(selectedPerson, "state", String.class,
				Boolean.FALSE), null);
		TableViewer ordersViewer = new TableViewer(ordersTable);
		dbc.bind(ordersViewer, new TableModelDescription(new Property(
				selectedPerson, "orders", Order.class, Boolean.TRUE),
				new Object[] { "orderNumber", "date" }), null);
		
		IObservable selectedOrder = dbc.createObservable(new Property(ordersViewer, ViewersProperties.SINGLE_SELECTION));
		
		Binding b = dbc.bind(orderDate, new Property(selectedOrder, "date", Date.class,
				Boolean.FALSE), null);
		dbc.bind(validationError, b.getValidationError(),
				new BindSpec().setUpdateModel(false));
	}
}