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

Bug 311631

Summary: [Accessibility] VoiceOver doesn't read the title of tabs in a tab group
Product: [Eclipse Project] Platform Reporter: Scott Kovatch <skovatch>
Component: SWTAssignee: Scott Kovatch <skovatch>
Status: RESOLVED FIXED QA Contact: Carolyn MacLeod <carolynmacleod4>
Severity: normal    
Priority: P3 Flags: carolynmacleod4: review+
Version: 3.6   
Target Milestone: 3.6 RC1   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Fix
none
Fix none

Description Scott Kovatch CLA 2010-05-04 16:51:29 EDT
I20100429-1549

VoiceOver isn't reading the title of a tab.

1. Launch ControlExample
2. Turn on VoiceOver.
3. Click on a tab

You hear "selected tab xx of 25" but the title isn't announced. Compare with System Preferences -> Keyboard (for example), where the name of the tab is announced when you click on it.

This is a standard control so we shouldn't be overriding anything.
Comment 1 Scott Kovatch CLA 2010-05-04 16:52:38 EDT
Accessibility Inspector reports that AXTitle is the empty string. That's probably a good starting point.
Comment 2 Scott Kovatch CLA 2010-05-04 18:08:12 EDT
Created attachment 167056 [details]
Fix

TabItems have an empty label so the text can be drawn at a later time. That causes the standard accessibility code to read the item as having a blank title. Fix that by overriding accessibilityAttributeValue to get the text and tooltip text for the tab.
Comment 3 Scott Kovatch CLA 2010-05-04 18:09:23 EDT
Car, please review.
Comment 4 Scott Kovatch CLA 2010-05-04 18:10:50 EDT
Created attachment 167057 [details]
Fix

Attach the right files this time.
Comment 5 Carolyn MacLeod CLA 2010-05-05 12:56:51 EDT
Looks good, Scott - go ahead and set the target milestone for RC1 and commit.
Comment 6 Scott Kovatch CLA 2010-05-05 13:12:47 EDT
Fixed > 20100505.