Community
Participate
Working Groups
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.
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?
*** This bug has been marked as a duplicate of 115947 ***
Regarding comment #1, you can cc yourself to bug 158836, which depends on 6 aaccessibility api feature requests.
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)
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
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.