Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336587 - AbstractComboRidget: allow setSelection(...) to select something that is not in the list
Summary: AbstractComboRidget: allow setSelection(...) to select something that is not ...
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.0.0   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 02:18 EST by Elias Volanakis CLA
Modified: 2011-02-08 21:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.