Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/MasterDetailScenarios.java
});
		adventureListViewer
				.setContentProvider(new ObservableListContentProvider());
		adventureListViewer.setInput(MasterDetailObservables.detailList(
				selectedCategoryObservable, BeansObservables.listFactory(
						realm, "adventures"), Adventure.class));
		ComputedValue categorySelectionExistsObservable = new ComputedValue() {
			protected Object calculate() {
				return new Boolean(
						selectedCategoryObservable.getValue() != null);
			}
		};
		getDbc().bindValue(
				SWTObservables.observeEnabled(adventureListViewer.getList()),
				categorySelectionExistsObservable, null);
		final IObservableValue selectedAdventureObservable = ViewersObservables
				.observeSingleSelection(adventureListViewer);
		ComputedValue adventureSelectionExistsObservable = new ComputedValue() {
			protected Object calculate() {
				return new Boolean(
						selectedAdventureObservable.getValue() != null);
			}
		};
		final Text txtName = new Text(getComposite(), SWT.BORDER);
		getDbc().bindValue(SWTObservables.observeEnabled(txtName),
				adventureSelectionExistsObservable, null);
		getDbc().bindValue(
				SWTObservables.observeText(txtName, SWT.Modify),
				MasterDetailObservables.detailValue(
						selectedAdventureObservable, BeansObservables