|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.ui.rsyntaxtextarea.folding.FoldParserManager
public class FoldParserManager
Manages fold parsers. Instances of RSyntaxTextArea call into
this class to retrieve fold parsers for whatever language they're editing.
Folks implementing custom languages can add a FoldParser
implementation for their language to this manager and it will be used by
RSTA.
| Field Summary |
|---|
| Method Summary | |
|---|---|
void |
addFoldParserMapping(String syntaxStyle,
FoldParser parser)
Adds a mapping from a syntax style to a fold parser. |
static FoldParserManager |
get()
Returns the singleton instance of this class. |
FoldParser |
getFoldParser(String syntaxStyle)
Returns a fold parser to use for an editor highlighting code of a specific language. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addFoldParserMapping(String syntaxStyle,
FoldParser parser)
SYNTAX_STYLE_JAVA, with your own parser
implementations.
syntaxStyle - The syntax style.parser - The parser.SyntaxConstantspublic static FoldParserManager get()
public FoldParser getFoldParser(String syntaxStyle)
syntaxStyle - A value from SyntaxConstants, such as
SYNTAX_STYLE_JAVA.
null if none is registered
for the language.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||