Bug 123758 [DataBinding] CComboUpdatableValue Doesn't Handle Text That Isn't in The List of Selected Items
The current implementation of CComboUpdatableValue will only allow setting text if the value is in the list of possible selection values. In reality the CCombo allows either a manually entered value (which may not be in the list) or the selection of a value from the drop down list. I'll be submitting a patch for this shortly.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ReadOnlyComboScenarios.java
assertEquals(getColumn(catalog.getLodgings(), "name"),
				getComboContent());
		
		getDbc()
				.bind(
						new Property(cviewer,
								ViewersProperties.SINGLE_SELECTION),
						new Property(skiAdventure, "defaultLodging"),
						null);
		
		assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging());
		
		
		for (int i = 0; i < catalog.getLodgings().length; i++) {
			Object selection = catalog.getLodgings()[i];
			cviewer.setSelection(new StructuredSelection(selection));
			assertEquals(selection, skiAdventure.getDefaultLodging());
			assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging());
		}
	}
	/**
	 * 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.