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

Bug 299832

Summary: enabling and disabling Preference field editors does not work at all!
Product: [Eclipse Project] Platform Reporter: Pawan Singh <psingh>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: ericwill, pinnamur, psingh, remy.suen
Version: 3.5.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
preference page implementation none

Description Pawan Singh CLA 2010-01-15 17:38:50 EST
Build Identifier: M20090917-0800

I have a preference page implementation where I enable disable field editors based on propertyChange event. This screws up the field editors so badly that one cannot even get mouse to get out of a text box - one has to hit keyboard tab to get out of the field. The problem I am seeing is on Ubuntu 9.10, 32-bit.

Reproducible: Always

Steps to Reproduce:
1. Enable disable field editors in propertyChange event
2. If you click in a text field, you can never get mouse out of that by clicking somwhere else.
Comment 1 Pawan Singh CLA 2010-01-15 17:40:02 EST
I am attaching the example files to show this problem.
Comment 2 Pawan Singh CLA 2010-01-15 17:41:14 EST
Created attachment 156295 [details]
preference page implementation
Comment 3 Pawan Singh CLA 2010-01-15 17:41:56 EST
Use this enum as the DatabaseType:

public enum DatabaseType {
    MySQL, SqlServer, Oracle, Sqlite, Postgresql, Derby, Other
}


and just uncomment setFieldStatus() method.
Comment 4 Remy Suen CLA 2010-01-15 20:11:53 EST
If you run with a newer build, does the error occur?
http://download.eclipse.org/eclipse/downloads/

You may also want to try defining the GDK_NATIVE_WINDOWS=true environment variable in your launch configuration.
Comment 5 Pawan Singh CLA 2010-01-15 20:37:14 EST
I do have that defined in my .bashrc.
Comment 6 Eric Williams CLA 2018-05-15 14:50:48 EDT
Is this still reproducible? Do you have a pure SWT snippet that reproduces the issue on GTK3.22?
Comment 7 Eric Williams CLA 2018-05-30 10:44:56 EDT
Closing this ticket now. Please re-open this ticket if the issue is reproducible on 4.8 with GTK3.22.