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

Bug 390007

Summary: Table.select reveals the selection on Linux, but not on other platforms
Product: [Eclipse Project] Platform Reporter: Nam Quang Tran <qforce>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, ericwill
Version: 4.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Snippet that reproduces the problem none

Description Nam Quang Tran CLA 2012-09-20 09:28:10 EDT
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.
Comment 1 Eric Williams CLA 2018-04-13 15:34:03 EDT
I cannot reproduce this issue on GTK3.22, 4.8 M6, and Fedora 27.