Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336587

Summary: AbstractComboRidget: allow setSelection(...) to select something that is not in the list
Product: [RT] Riena Reporter: Elias Volanakis <elias>
Component: ridgetAssignee: Elias Volanakis <elias>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: steffen.kriese
Version: unspecified   
Target Milestone: 3.0.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Elias Volanakis CLA 2011-02-08 02:18:25 EST
Back in October we added something to the CComboRidget to allow setSelection(...) to "select" an element that is not in the list. In that case getSelection(...) returns the element, but getSelectionIndex() returns -1.

I've asked Steffen via email for a quick reminder why we needed this funtionality.

If we need it -- we should allow it in all variants of a combo, i.e. Combo, CCombo, CompletionCombo. That means moving that code up to AbstractComboRidget.
Comment 1 Elias Volanakis CLA 2011-02-08 21:07:20 EST
This was moved down to AbstractCompletionCombo. It is now allowed in all variants of the ridget.

Resolved.