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

Bug 336125

Summary: ACC.RELATION_DESCRIBED_BY does not work for Text
Product: [Eclipse Project] Platform Reporter: Oleg Besedin <ob1.eclipse>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: carolynmacleod4
Version: 3.7   
Target Milestone: 4.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 248410    
Attachments:
Description Flags
Broken snippet none

Description Oleg Besedin CLA 2011-02-02 13:30:11 EST
Created attachment 188178 [details]
Broken snippet

The Snippet340 shows a Label widget that can be used to supply screen readers with the accessible information.

The same principle does not work if Text widget is used in place of the Label. 

The attached patch changes Label widget to read-only Text. The patched snippet does not work with Jaws 11.

The Wizard dialogs in Eclipse SDK use Text widgets to display error messages. As a result this issue blocks bug 248410.
Comment 1 Carolyn MacLeod CLA 2011-03-22 12:30:48 EDT
Why do Wizard dialogs use Text widgets to display error messages?
Is it so that the error message can take focus, so that a screen reader user can hear it spoken? If so, then switching to Label would make them more accessible because they could be spoken right when the message changes.
(If it is important that the error messages can get selected, in order to be copy/pasted, for example, then I guess they need to stay as Text controls).
Comment 2 Oleg Besedin CLA 2011-03-22 13:39:46 EDT
(In reply to comment #1)
> Why do Wizard dialogs use Text widgets to display error messages?
> Is it so that the error message can take focus, so that a screen reader user
> can hear it spoken?

Yes, and also so it is possible to copy the text.

I'd prefer to keep it as Text as people are used to be able to tab to it.
Comment 3 Carolyn MacLeod CLA 2013-02-26 15:31:57 EST
Fixed snippet in master:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=55bec4cf2651738824fee3f0adede6b94a473ed3

Tested with a relatively recent release of JAWS (14) and NVDA (2012.3.1).