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

Bug 277678

Summary: Listbox does not reveal selection
Product: [RT] RAP Reporter: Hasan Ceylan <hceylan>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: vasko
Version: 1.3   
Target Milestone: 1.3 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Hasan Ceylan CLA 2009-05-25 08:15:55 EDT
Build ID: 3.5M6

Steps To Reproduce:
We use databinding, before a view is show databinding populates the values from the model. However, for listboxes selected value is not autoscrolled && revealed....
Comment 1 Vasko Tchoumatchenko CLA 2009-07-31 06:23:27 EDT
@Ralf

To fix this we need:

1. to resolve Bug 280900
2. to call List#showSelected() at the end of List#setSelection()
Comment 2 Vasko Tchoumatchenko CLA 2009-07-31 06:28:31 EDT
(In reply to comment #1)
> @Ralf
> 
> To fix this we need:
> 
> 1. to resolve Bug 280900
> 2. to call List#showSelected() at the end of List#setSelection()
> 

Even if we implement the above suggestions, with the current List.js  setSelection() and showSelection() will works only for visible widgets.
Comment 3 Benjamin Muskalla CLA 2009-08-06 04:58:37 EDT
This was not really a problem with databinding but rather with the ListViewer in JFace. The code to reveal the selection was left out as we didn't had the API in place.
Reactivated the code in ListViewer.
Hasan, could you please do a quick sanity check against CVS HEAD if everything works as expected? Thanks! If there is something wrong, feel free to reopen the bug report.