| Summary: | Table.select reveals the selection on Linux, but not on other platforms | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nam Quang Tran <qforce> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse, ericwill | ||||
| Version: | 4.2 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I cannot reproduce this issue on GTK3.22, 4.8 M6, and Fedora 27. |
Created attachment 221296 [details] Snippet that reproduces the problem On Linux, the methods Table.select(int) and Table.select(int[]) reveal the new selection if the Table has SWT.SINGLE style. This behavior is not seen on other platforms (Win7, WinXP, Mac OS X), or when SWT.MULTI style is used. Revealing the selection leads to problems with JFace on Linux: The method TableViewer.setSelection(ISelection selection, boolean reveal) calls Table.select, and because the latter always reveals the selection, a reveal=false argument is always ignored. How to reproduce: Run the attached snippet on Linux and click the button. Result: The last item is revealed. Change the Table style to SWT.MULTI and this problem disappears.