Community
Participate
Working Groups
Currently ComboBoxCellEditor doesn't have a constructor that receives the style for the created combo. The created combo doesn't have the style bit SWT.READ_ONLY, therefore the user may type a different value from the ones on the list. I'd like to force the user to select one of the items on the combo's list, and not type in a different one. Moreover, if the user does type a different value, an exception occures (because there wasn't any selection in the combo...)
Does the exception occur in your code or in ComboBoxCellEditor?
Should change all CellEditors to support user-specified style bits: - add a constructor in CellEditor which takes the style bits and remembers them before calling createControl - add a getStyle() method to CellEditor - add constructors that take style in subclasses - change current constructors in subclasses to call the new constructor with the default style - change the createControl methods to use getStyle()
See also bug 10687.
*** This bug has been marked as a duplicate of 12329 ***