Re: Accessibility access to visual annotation markers outside of Glyph Gutter
Andreas Stefik <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CABiHOJ=YFFj2ojOcZ4GEsF0PEbD=EkR7h0DXMr+_JBAav5smvw@mail.gmail.com> |
Thanks Benno, This helps, although at this place in the source, because of the way accessibility works under the hood for our tool, what we have access to is a BaseDocument. Are you suggesting you basically have to use the document, then somehow route it through a set of other APIs to get particular context, get their data structures and dig through them, and then you can pull out info for each separate visual marker? Or, like the other annotations, are these markers listed in the BaseDocument themselves somewhere? For example, is this other sidebar available from within a BaseDocument and do you know what it is called? Stefik On Wed, Jun 15, 2016 at 1:16 PM, Benno Markiewicz < [email protected]> wrote: > Hej Stefik, > > the diff and folding are separate sidebars. So have a look in the modules > where the sidebars are defined to see the internal data structure. > > At least for folding there is a separate public API, which you can use: > > http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-fold/index.html > > > > With kind regards, markiewb > > 2016-06-15 20:04 GMT+02:00 Andreas Stefik <[email protected]>: > >> All, >> >> I'm working on adding some new Accessibility features into NetBeans, >> namely to increase accessibility with Git Support and Code folding for the >> Quorum 4.0 release. In the past, when I've wanted to access visual aspects >> of the editor, I do things like this: >> >> BaseDocument document = (BaseDocument) text.getDocument(); >> Annotations docAnnotations = document.getAnnotations(); >> >> Once I have the annotations, it tells me things like whether there is a >> little lightbulb in the corner, compiler errors, or things like that. >> That's useful for making editor hints, errors, and a bunch of other things >> accessible. However, for GIT support and code folding, for which the visual >> elements are not in the glyph gutter, I'm guessing these aren't stored as >> annotations. >> >> Is there a way to get which visual markers are active on the line for >> Version control and code folding information? I've been digging through the >> docs, but have come up dry. >> >> Stefik >> >> P.S. The reason I ask is because blind students across the U.S. are >> starting to form robotics teams and we're having them use GIT, as it's >> mostly accessible. Thus, I'm trying to get it accessible inside of NetBeans. >> > >