| java.lang.Object org.gjt.sp.jedit.textarea.BufferHandler
BufferHandler | class BufferHandler implements BufferListener(Code) | | Note that in this class we take great care to defer complicated
calculations to the end of the current transaction if the buffer
informs us a compound edit is in progress
(isTransactionInProgress() ).
This greatly speeds up replace all for example, by only doing certain
things once, particularly in moveCaretPosition() .
Try doing a replace all in a large file, for example. It is very slow
in 3.2, faster in 4.0 (where the transaction optimization was
introduced) and faster still in 4.1 (where it was further improved).
There is still work to do; see TODO.txt.
|
Method Summary | |
public void | bufferLoaded(JEditBuffer buffer) | public void | contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) | public void | contentRemoved(JEditBuffer buffer, int startLine, int start, int numLines, int length) | public void | foldHandlerChanged(JEditBuffer buffer) | public void | foldLevelChanged(JEditBuffer buffer, int start, int end) | public void | preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Called when text is about to be removed from the buffer, but is
still present. | public void | preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length) Method called before some content is removed. | public void | transactionComplete(JEditBuffer buffer) |
delayedMultilineUpdate | boolean delayedMultilineUpdate(Code) | | |
delayedUpdate | boolean delayedUpdate(Code) | | |
delayedUpdateEnd | int delayedUpdateEnd(Code) | | |
delayedUpdateStart | int delayedUpdateStart(Code) | | |
contentInserted | public void contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)(Code) | | |
contentRemoved | public void contentRemoved(JEditBuffer buffer, int startLine, int start, int numLines, int length)(Code) | | |
foldLevelChanged | public void foldLevelChanged(JEditBuffer buffer, int start, int end)(Code) | | |
preContentInserted | public void preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Called when text is about to be removed from the buffer, but is
still present.
Parameters: buffer - The buffer in question Parameters: startLine - The first line Parameters: offset - The start offset, from the beginning of the buffer Parameters: numLines - The number of lines to be removed Parameters: length - The number of characters to be removed since: jEdit 4.3pre11 |
preContentRemoved | public void preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)(Code) | | Method called before some content is removed.
Parameters: buffer - the buffer Parameters: startLine - the first removed line Parameters: offset - the offset where starts the removed content Parameters: numLines - the number of removed lines Parameters: length - the removed length |
|
|