public class DefaultFoldingRegionAcceptor extends java.lang.Object implements IFoldingRegionAcceptorExtension<ITextRegion>
Constructor and Description |
---|
DefaultFoldingRegionAcceptor(IXtextDocument document,
java.util.Collection<FoldedPosition> result) |
Modifier and Type | Method and Description |
---|---|
void |
accept(int offset,
int length) |
void |
accept(int offset,
int length,
boolean initiallyFolded) |
void |
accept(int offset,
int length,
boolean initiallyFolded,
ITextRegion significantRegion) |
void |
accept(int offset,
int length,
ITextRegion significantRegion) |
protected org.eclipse.jface.text.IRegion |
getLineRegion(int offset,
int length) |
protected FoldedPosition |
newFoldedPosition(org.eclipse.jface.text.IRegion region,
ITextRegion significantRegion)
Deprecated.
|
protected FoldedPosition |
newFoldedPosition(org.eclipse.jface.text.IRegion region,
ITextRegion significantRegion,
boolean initiallyFolded) |
public DefaultFoldingRegionAcceptor(IXtextDocument document, java.util.Collection<FoldedPosition> result)
public void accept(int offset, int length, boolean initiallyFolded, ITextRegion significantRegion)
accept
in interface IFoldingRegionAcceptorExtension<ITextRegion>
offset
- of the significant contentlength
- of the significant contentinitiallyFolded
- whether this region should be folded by defaultsignificantRegion
- used to compute the significant region.public void accept(int offset, int length, ITextRegion significantRegion)
accept
in interface IFoldingRegionAcceptor<ITextRegion>
offset
- of the significant contentlength
- of the significant contentsignificantRegion
- used to compute the significant region.public void accept(int offset, int length, boolean initiallyFolded)
accept
in interface IFoldingRegionAcceptorExtension<ITextRegion>
offset
- of the significant contentlength
- of the significant contentinitiallyFolded
- whether this region should be folded by defaultpublic void accept(int offset, int length)
accept
in interface IFoldingRegionAcceptor<ITextRegion>
protected org.eclipse.jface.text.IRegion getLineRegion(int offset, int length)
@Deprecated protected FoldedPosition newFoldedPosition(org.eclipse.jface.text.IRegion region, ITextRegion significantRegion)
newFoldedPosition(IRegion, ITextRegion, boolean)
protected FoldedPosition newFoldedPosition(org.eclipse.jface.text.IRegion region, ITextRegion significantRegion, boolean initiallyFolded)