Bug 66616 [PropertiesView] ComboBoxPropertyDescriptor doesn't work in PropertySheetView
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
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/ComboBoxPropertyDescriptor.java
* This class may be instantiated; it is not intended to be subclassed.
 * </p>
 * <p>
 * Example:
 * <pre>
 * String[] values = {"Top left", "Top right", "Bottom left", "Bottom right"};
 * IPropertyDescriptor pd = new ComboBoxPropertyDescriptor("origin", "Origin", values);
 * </pre>
 * </p>
 */
public class ComboBoxPropertyDescriptor extends PropertyDescriptor {
    /**
     * The list of possible values to display in the combo box
     */
    private String[] values;
    /**
     * Creates an property descriptor with the given id, display name, and list
     * of value labels to display in the combo box cell editor.
     * 
     * @param id the id of the property
     * @param displayName the name to display for the property
     * @param valuesArray the list of possible values to display in the combo box
     */
    public ComboBoxPropertyDescriptor(Object id, String displayName,
            String[] valuesArray) {
        super(id, displayName);
        values = valuesArray;
    }
    /**
     * The <code>ComboBoxPropertyDescriptor</code> implementation of this