Re: Accessibility access to visual annotation markers outside of Glyph Gutter
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4gXGHxW2DpdFLq5CNhS1iY69RJGWkmBmB01BmZAR4aE_Q@mail.gmail.com> |
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. >