Bug 394300 - Misbehaviour on focus change of text widgets
Summary: Misbehaviour on focus change of text widgets
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 10:43 EST by Mark Hoffmann CLA
Modified: 2012-12-13 14:59 EST (History)
0 users

See Also:


Attachments
example-demo (57.35 KB, application/zip)
2012-11-14 10:43 EST, Mark Hoffmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hoffmann CLA 2012-11-14 10:43:03 EST
Created attachment 223561 [details]
example-demo

Given two parts, with one containing a composite with several text widgets. The focus of the part is set to its composite. The first text widget contains a text (via setText()) and the others are empty. Manually setting the focus to one of the empty text widgets will copy the text of the first widget into the selected one.
The attached sample shows such an application. 
Steps to reproduce:
1. Start application.
2. Click into the empty part, to make sure it gains focus.
3. Click into the empty text widget of the opposite part.

The error does not occur under linux (gtk).
Comment 1 Mark Hoffmann CLA 2012-11-14 10:52:00 EST
Adding a focus listener to the empty text widget shows three focus-gained events and two focus-lost events.
The first field contains the text "Test". Setting the focus manually from the empty part to the empty text widget (as described below) results in the following output:
 
Gained: 
Lost: 
Gained: Test
Lost: Test
Gained: Test