Bug 253305

Summary: ControlsWithLabelsExample needs to be accessible
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: SWTAssignee: Scott Kovatch <skovatch>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cocoakevin, grant_gayed, steve_northover
Version: 3.5Keywords: accessibility
Target Milestone: 3.5 M4   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Carolyn MacLeod CLA 2008-11-03 16:41:53 EST
One more aspect of SWT Accessibility is that if a control has a Label preceding it in the z-order, and if it hasn't otherwise specified its accessible name, then the preceding Label is used as its accessible name.

This is an artifact of default MSAA behavior.

To see where this is implemented in SWT Carbon, look at Label.addRelation() and its senders in Control, and their senders. Also, look at all implementors of isDescribedByLabel(). You'll also need to implement Control.addRelation(), Control.removeRelation(), and Label.removeRelation(). I think that's it...

Run ControlsWithLabelsExample for testing.
Comment 1 Scott Kovatch CLA 2008-11-05 14:54:46 EST
Fixed > 20081105. The code is essentially the same as it was in Carbon, but slightly more complicated by Cocoa's use of NSCell to provide the accessibility information for the control.