Re: get information of which line is hidden/collapse in editor
Emilian Bold <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAL6R17DiEOFhRwkoD4Rw0Jnh_18FhvpdNwNZck1pwr4ZE8VD7g@mail.gmail.com> |
See Editor Code Folding. --emi On Fri, Mar 17, 2017 at 9:53 PM, Peter Cheung <[email protected]> wrote: > hi > how to get information of which line is hidden/collapse in editor? I use > the following code to get character colour, but no information of which > line is hidden > > HighlightsContainer hc = HighlightingManager.getInstance(jtc). > getBottomHighlights(); > HighlightsSequence hq = hc.getHighlights(0, document.getLength()); > while (hq.moveNext()) { > AttributeSet as = hq.getAttributes(); > Color color=as.getAttribute(StyleConstants.Foreground); > } > > thanks > from Peter