Interface IFoldingRangeProvider

  • All Known Implementing Classes:
    DefaultFoldingRangeProvider

    public interface IFoldingRangeProvider
    Compute the folding regions in the given document. This is a blocking action when opening the editor in e4, so clients should be careful to not resolve too many cross references in their implementation.
    Since:
    2.26
    • Method Detail

      • getFoldingRanges

        java.util.SortedSet<FoldingRange> getFoldingRanges​(org.eclipse.xtext.resource.XtextResource xtextDocument,
                                                           org.eclipse.xtext.util.CancelIndicator cancelIndicator)
        Returns:
        the set of FoldingRanges for the given document