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

Bug 323219

Summary: Spinner.setDigits triggers a SWT.Selection Event on Linux and not on Windows
Product: [Eclipse Project] Platform Reporter: Romain Raugi <romain.raugi>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: ckadner, eclipse.felipe, lizeray, romain.raugi
Version: 3.5.2   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
unit test
none
unit test
none
patch for R3_4_maintenance none

Description Romain Raugi CLA 2010-08-20 05:05:42 EDT
Build Identifier: 20100218-1602

In Windows, calling setDigits() on a spinner does not fire any event. This is not the case on Linux. The attached JUnit test highlights the bug, this event should not be triggered when calling setDigits(). 

This makes our product working differently in Windows and Linux.


Reproducible: Always

Steps to Reproduce:
1.Create a spinner.
2.Call setDigits(XX)
3.On Windows, the event is not fired. What is fine.
4.On Linux, the event is fired. Here is the bug.
Comment 1 Romain Raugi CLA 2010-08-20 05:07:13 EDT
Created attachment 177070 [details]
unit test
Comment 2 Romain Raugi CLA 2010-08-20 05:09:52 EDT
Created attachment 177071 [details]
unit test
Comment 3 Felipe Heidrich CLA 2010-08-20 12:56:06 EDT
Fixed in HEAD > 20100820

Please, verify it in the next nightly build. Thanks.
Comment 4 Felipe Heidrich CLA 2010-08-25 09:38:02 EDT
Created attachment 177418 [details]
patch for R3_4_maintenance