Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/MasterDetailScenarios.java
final IObservableValue selectedLodgingObservable = ViewersObservables
				.observeSingleSelection(listViewer);
		selectedLodgingObservable.setValue(null);
		assertTrue(listViewer.getSelection().isEmpty());
		ComputedValue selectionExistsObservable = new ComputedValue(
				boolean.class) {
			protected Object calculate() {
				return new Boolean(selectedLodgingObservable.getValue() != null);
			}
		};
		assertFalse(((Boolean) selectionExistsObservable.getValue())
				.booleanValue());
		final Text txtName = new Text(getComposite(), SWT.BORDER);
		getDbc().bindValue(SWTObservables.observeEnabled(txtName),
				selectionExistsObservable, null);
		getDbc().bindValue(
				SWTObservables.observeText(txtName, SWT.Modify),
				MasterDetailObservables.detailValue(
						selectedLodgingObservable, BeansObservables
								.valueFactory(realm, "name"),
						String.class), null);
		assertEquals(txtName.getText(), "");
		assertFalse(txtName.getEnabled());
		final Text txtDescription = new Text(getComposite(), SWT.BORDER);
		getDbc().bindValue(SWTObservables.observeEnabled(txtDescription),
				selectionExistsObservable, null);
		getDbc().bindValue(
				SWTObservables.observeText(txtDescription, SWT.Modify),
				MasterDetailObservables.detailValue(
						selectedLodgingObservable, BeansObservables