java.lang.Object
org.gjt.sp.jedit.buffer.FoldHandler
org.gjt.sp.jedit.buffer.ExplicitFoldHandler
A fold handler that folds lines based on markers ("{{{" and "}}}")
embedded in the text.
- Since:
- jEdit 4.0pre1
- Version:
- $Id: ExplicitFoldHandler.java 25193 2020-04-11 17:02:18Z kpouer $
- Author:
- Slava Pestov
-
Field Summary
Fields inherited from class org.gjt.sp.jedit.buffer.FoldHandler
foldHandlerProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) Returns the fold level of the specified line.Methods inherited from class org.gjt.sp.jedit.buffer.FoldHandler
equals, getFoldHandler, getFoldModes, getName, getPrecedingFoldLevels, hashCode, toString
-
Constructor Details
-
ExplicitFoldHandler
public ExplicitFoldHandler()
-
-
Method Details
-
getFoldLevel
Returns the fold level of the specified line.- Specified by:
getFoldLevel
in classFoldHandler
- Parameters:
buffer
- The buffer in questionlineIndex
- The line indexseg
- A segment the fold handler can use to obtain any text from the buffer, if necessary- Returns:
- The fold level of the specified line
- Since:
- jEdit 4.0pre1
-