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
}
			} catch (IllegalArgumentException e) {
			} catch (IllegalAccessException e) {
			} catch (InvocationTargetException e) {
			}
		} catch (SecurityException e) {
		} catch (NoSuchMethodException e) {
		}
		return result;
	}
	/**
	 * This test case deal with the 3rd scenario, using vanilla bindings: Ensure
	 * a valid content and selection are bounded correctly Bind a collection of
	 * Lodgings to a ComboViewer Bind the ComboViewer's selection to the
	 * defaultLodging of an Adventure
	 * 
	 * This test does not deal with null values, empty content, changed content,
	 * property change of content elements, etc.
	 * 
	 */
	public void test_ROCombo_Scenario03_vanilla() {
		Adventure skiAdventure = SampleData.WINTER_HOLIDAY; 
		
		cviewer.setLabelProvider(lodgingLabelProvider);
		
		getDbc().bind(cviewer, new Property(catalog, "lodgings"),
				null);
		
		assertArrayEquals(catalog.getLodgings(), getViewerContent(cviewer)
				.toArray());