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

Bug 479306

Summary: Read-Only Combo Items garbled when using default ViewerComparator
Product: [Eclipse Project] Platform Reporter: Andreea Pintea <andipin2004>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill, vlad.gheorghe
Version: 4.5Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
View with ReadOnly sorted ComboBox none

Description Andreea Pintea CLA 2015-10-08 03:38:20 EDT
Created attachment 257141 [details]
View with ReadOnly sorted ComboBox

Hello, 

I have the following setup, 

CentOs 6 
Eclipse Mars Platform(4.5)
GTK version 2.18.9

In the attached code, i use a simple view with a read-only combo-box. When i try to sort the items inside the combo with a default ViewerComparator, the items are displayed overlapped. There seems to be some incompatibility between the READ-ONLY flag and the comparator.
The issue does not reproduce on Windows.

Best Regards, 

Andreea Pintea
Comment 1 Eric Williams CLA 2019-08-27 14:54:48 EDT
How does one run this snippet and test for the bug?
Comment 2 Vlad Gheorghe CLA 2019-08-28 01:42:02 EDT
The attached sample is an Eclipse plugin project.
One has to open it with the Eclipse for Eclipse Committers

eg: 
https://www.eclipse.org/downloads/packages/release/mars/1/eclipse-ide-eclipse-committers-451

This is the context where the bug occured. At the time we did not have the time to isolate the sample to a stand-alone swt program.
Comment 3 Eric Williams CLA 2019-09-26 16:47:31 EDT
Please try with Eclipse 4.13, we had a lot of fixes for SWT.READ_ONLY Combo boxes in 4.9 - 4.12.
Comment 4 Eric Williams CLA 2019-11-12 11:03:05 EST
(In reply to Eric Williams from comment #3)
> Please try with Eclipse 4.13, we had a lot of fixes for SWT.READ_ONLY Combo
> boxes in 4.9 - 4.12.

Ping, any update/news?
Comment 5 Vlad Gheorghe CLA 2019-11-16 10:24:52 EST
I will try to re-test.
It is indeed an awkward setup.
Can you recommend an easier setup for swt tests ?
I would isolate the issue with only a dependency to swt, though it might be relevant  that it occured in a eclipse rcp application.
Comment 6 Vlad Gheorghe CLA 2019-11-22 13:47:51 EST
Tested with Eclipse Platform 4.13 2019-09 / Ubuntu 18.04 

eclipse.buildId=4.13.0.I20190916-1045
--launcher.library
/opt/eclipse/bundle-pool/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426/eclipse_1801.so
org.eclipse.swt.internal.deviceZoom=100
org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Ambiance
org.eclipse.swt.internal.gtk.version=3.22.30
org.eclipse.swt.internal.webkitgtk.version=2.26.2

Test code:
https://github.com/vgheo/swt-bug-479306


Issue is fixed.
Comment 7 Eric Williams CLA 2019-11-22 14:04:02 EST
(In reply to Vlad Gheorghe from comment #6)
> Tested with Eclipse Platform 4.13 2019-09 / Ubuntu 18.04 
> 
> eclipse.buildId=4.13.0.I20190916-1045
> --launcher.library
> /opt/eclipse/bundle-pool/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.
> x86_64_1.1.1100.v20190907-0426/eclipse_1801.so
> org.eclipse.swt.internal.deviceZoom=100
> org.eclipse.swt.internal.gdk.backend=x11
> org.eclipse.swt.internal.gtk.theme=Ambiance
> org.eclipse.swt.internal.gtk.version=3.22.30
> org.eclipse.swt.internal.webkitgtk.version=2.26.2
> 
> Test code:
> https://github.com/vgheo/swt-bug-479306
> 
> 
> Issue is fixed.

Thank you for getting back to us, and I'm happy to hear the issue has been fixed.