Bug 160000 [DataBinding] Convert scenarios to official APIs
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboScenarios.java
}
    private static IObservableFactory getLodgingsDetailFactory(final Class clazz) {
        return new IObservableFactory() {
            public IObservable createObservable(Object target) {
                Lodging[] lodgings = (Lodging[]) target;
                WritableList list = new WritableList(clazz);
                list.addAll(Arrays.asList(lodgings));
                return list;
            }
        };
    }
    /**
     * This test case deal with the 3rd scenario, and focuses on the collection
     * binding to the combo. It will bind a collection, add/remove/change
     * elements in the collection, and change element's properties to ensure
     * that the combo's labels were updated appropriatly.
     * 
     * it also induce null values in properties, and elments.
     * 
     * This test does not deal with the combo's selection.
     */
    public void test_ROCombo_Scenario03_collectionBindings() {
        cviewer.setLabelProvider(lodgingLabelProvider); 
        
        
        IObservableList list = MasterDetailObservables.detailList(BeansObservables.observeValue(catalog, "lodgings"),
                getLodgingsDetailFactory(Lodging.class),
                Lodging.class);
        cviewer.setContentProvider(new ObservableListContentProvider());
        cviewer.setInput(list);