Project: Eclipse_Platform_UI
Bug 66616 [PropertiesView] ComboBoxPropertyDescriptor doesn't work in PropertySheetView
Reported: 2004-06-10 20:03:09 | Status: verified fixed

created a model and property sheet view. model returns following property descriptor: String[] values = {"A","B","C"}; IPropertyDescriptor[] colmDec = new IPropertyDescriptor[1]; ComboBoxPropertyDescriptor colmProp = new ComboBoxPropertyDescriptor ("PROP_FRUIT","fruit",values); colmDec[0] = colmProp; model has getPropertyValue. and everything is ok but when mouse click on property sheet on row for "fruit", eclipse generate assertion failure on following method: ComboBoxCellEditor protected void doSetValue(Object value) { Assert.isTrue(comboBox != null && (value instanceof Integer)); selection = ((Integer) value).intValue(); comboBox.select(selection); } where value is "A". so somehow, ComboBoxCellEditor expects integer value but PropertySheetEntry sending one of list items. note that when debugged, ComboBoxCellEditor has property initialized with items from ComboBoxPropertyDescriptor

Files changed in fix:
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/ComboBoxPropertyDescriptor.java