Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312355 - [Accessibility] Can't detect changes in alignment or justification with current API
Summary: [Accessibility] Can't detect changes in alignment or justification with curre...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Scott Kovatch CLA
QA Contact: Carolyn MacLeod CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 19:30 EDT by Scott Kovatch CLA
Modified: 2021-10-27 03:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Kovatch CLA 2010-05-10 19:30:35 EDT
AccessibleAttributeListener's getAttributes method returns a collection of metrics about a text object, but it doesn't have enough granularity to return information about a run of text. If a text object changes alignment or justification there's no way to query whether the text at the cursor is left, right, or center aligned.

To see this, run Snippet213 on 3.6 Cocoa and turn on VoiceOver. Although the alignment changes from paragraph to paragraph, we have no way of reporting the alignment to the user. Instead, we return the default alignment for the StyledText, which is SWT.LEFT.
Comment 1 Scott Kovatch CLA 2010-05-10 19:35:26 EDT
There are a couple of ways to handle this:

- extend TextStyle to have an alignment field
- change AccessibleAttributeEvent so it can take an offset/line number/something as an input field. AccessibleAttributeListener.getAttributes() then needs to set the line/offset for which we are interested.
- ???
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:12:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 3 Eclipse Genie CLA 2021-10-27 03:00:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.