| javax.swing.text.PlainDocument org.syntax.jedit.SyntaxDocument
SyntaxDocument | public class SyntaxDocument extends PlainDocument (Code) | | A document implementation that can be tokenized by the syntax highlighting
system.
author: Slava Pestov version: $Id$ |
Method Summary | |
public void | addUndoableEdit(UndoableEdit edit) Adds an undoable edit to this document's undo list. | public void | beginCompoundEdit() Starts a compound edit that can be undone in one operation. | public void | endCompoundEdit() Ends a compound edit that can be undone in one operation. | protected void | fireInsertUpdate(DocumentEvent evt) We overwrite this method to update the token marker
state immediately so that any event listeners get a
consistent token marker. | protected void | fireRemoveUpdate(DocumentEvent evt) We overwrite this method to update the token marker
state immediately so that any event listeners get a
consistent token marker. | public TokenMarker | getTokenMarker() Returns the token marker that is to be used to split lines
of this document up into tokens. | public void | setTokenMarker(TokenMarker tm) Sets the token marker that is to be used to split lines of
this document up into tokens. | public void | tokenizeLines() Reparses the document, by passing all lines to the token
marker. | public void | tokenizeLines(int start, int len) Reparses the document, by passing the specified lines to the
token marker. |
addUndoableEdit | public void addUndoableEdit(UndoableEdit edit)(Code) | | Adds an undoable edit to this document's undo list. The edit
should be ignored if something is currently being undone.
Parameters: edit - The undoable edit since: jEdit 2.2pre1 |
beginCompoundEdit | public void beginCompoundEdit()(Code) | | Starts a compound edit that can be undone in one operation.
Subclasses that implement undo should override this method;
this class has no undo functionality so this method is
empty.
|
endCompoundEdit | public void endCompoundEdit()(Code) | | Ends a compound edit that can be undone in one operation.
Subclasses that implement undo should override this method;
this class has no undo functionality so this method is
empty.
|
fireInsertUpdate | protected void fireInsertUpdate(DocumentEvent evt)(Code) | | We overwrite this method to update the token marker
state immediately so that any event listeners get a
consistent token marker.
|
fireRemoveUpdate | protected void fireRemoveUpdate(DocumentEvent evt)(Code) | | We overwrite this method to update the token marker
state immediately so that any event listeners get a
consistent token marker.
|
getTokenMarker | public TokenMarker getTokenMarker()(Code) | | Returns the token marker that is to be used to split lines
of this document up into tokens. May return null if this
document is not to be colorized.
|
setTokenMarker | public void setTokenMarker(TokenMarker tm)(Code) | | Sets the token marker that is to be used to split lines of
this document up into tokens. May throw an exception if
this is not supported for this type of document.
Parameters: tm - The new token marker |
tokenizeLines | public void tokenizeLines()(Code) | | Reparses the document, by passing all lines to the token
marker. This should be called after the document is first
loaded.
|
tokenizeLines | public void tokenizeLines(int start, int len)(Code) | | Reparses the document, by passing the specified lines to the
token marker. This should be called after a large quantity of
text is first inserted.
Parameters: start - The first line to parse Parameters: len - The number of lines, after the first one to parse |
|
|