Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 162737 - Accessibility for Tree/TreeItem not customizable independent from OS
Summary: Accessibility for Tree/TreeItem not customizable independent from OS
Status: RESOLVED DUPLICATE of bug 115947
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-30 07:37 EST by Jan Lohre CLA
Modified: 2006-11-06 10:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lohre CLA 2006-10-30 07:37:11 EST
There is no way to customize accessibility for TreeItems.

AccessibleEvent.childID is the OS handle of the TreeItem.

Accessible.get_accName() calls
Accessible.osToChildID() which calls 
OS.SendMessage (control.handle, OS.TVM_MAPACCIDTOHTREEITEM, osChildID, 0);
for compatibility reasons. (XP uses the item index as childID, earlier versions used the items handle)

I can't see a way to get the index of the item other than calling

OS.SendMessage (control.handle, OS.TVM_MAPHTREEITEMTOACCID, childID, 0);

which is internal and OS dependent.

Getting the TreeItem (or at least its index) should be API in order to make accessibility customizable.
Comment 1 Jan Lohre CLA 2006-11-06 09:14:57 EST
Although the proposed workaround for the bug (115947) is platform dependent I understand that there will be no API added in the 3.2.x maintance stream.

How do I stay up to date what API will be added to 3.3?
Comment 2 Jan Lohre CLA 2006-11-06 09:15:25 EST

*** This bug has been marked as a duplicate of 115947 ***
Comment 3 Carolyn MacLeod CLA 2006-11-06 10:08:37 EST
Regarding comment #1, you can cc yourself to bug 158836, which depends on 6 aaccessibility api feature requests.
Comment 4 Jan Lohre CLA 2006-11-06 10:20:44 EST
although that are interesting enhancements (so I CCed myself) but nothing about getting the tree item in a platform independent way.

Is the proposed API already implemented and released to the 3.3 stream?
Or will there be an update in 115947? (As it is RESOLVED/FIXED I supposed there will not be any more update)
Comment 5 Carolyn MacLeod CLA 2006-11-06 10:37:08 EST
The proposed API was implemented and released into the 3.3 stream.
See bug 115947 comment 17:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=115947#c17
Comment 6 Carolyn MacLeod CLA 2006-11-06 10:40:55 EST
Any comments following comment 17 in bug 115947 were discussing possibly back-porting the new api to eclipse 3.2 update releases. However this was not done, and a workaround for people running 3.2 and earlier was given.