mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Added code folding and formatted all files
This commit is contained in:
1 parent
11570d6b95
commit
66cd1dbd3e
233 files changed
+82245
-118134
No files matched your search
@@ -1,19 +1,16 @@
|
||||
/*
|
||||
* 03/09/2013
|
||||
*
|
||||
* OccurrenceMarker - Marks occurrences of the current token.
|
||||
*
|
||||
* This library is distributed under a modified BSD license. See the included
|
||||
* This library is distributed under a modified BSD license. See the included
|
||||
* RSyntaxTextArea.License.txt file for details.
|
||||
*/
|
||||
package org.fife.ui.rsyntaxtextarea;
|
||||
|
||||
import org.fife.ui.rtextarea.SmartHighlightPainter;
|
||||
|
||||
|
||||
/**
|
||||
* An <code>OccurrenceMarker</code> is called when the caret stops moving after
|
||||
* a short period. If the current {@link TokenMaker} returns an instance of
|
||||
* a short period. If the current {@link TokenMaker} returns an instance of
|
||||
* this class, it is told to mark all occurrences of the identifier at the
|
||||
* caret position.
|
||||
*
|
||||
@@ -21,43 +18,44 @@ import org.fife.ui.rtextarea.SmartHighlightPainter;
|
||||
* @version 1.0
|
||||
*/
|
||||
public interface OccurrenceMarker {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the token to mark occurrences, of, provided it matches the
|
||||
* criteria put forth by {@link #isValidType(RSyntaxTextArea, Token)}.
|
||||
* For most languages, this method should return the token at the caret
|
||||
* position.
|
||||
*
|
||||
* @param textArea The text area.
|
||||
* @param textArea
|
||||
* The text area.
|
||||
* @return The token to (possibly) mark occurrences of, or
|
||||
* <code>null</code> if none.
|
||||
*/
|
||||
Token getTokenToMark(RSyntaxTextArea textArea);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether the specified token is a type that we can do a
|
||||
* "mark occurrences" of. Typically, this will delegate to
|
||||
* "mark occurrences" of. Typically, this will delegate to
|
||||
* {@link RSyntaxTextArea#getMarkOccurrencesOfTokenType(int)}.
|
||||
*
|
||||
* @param textArea The text area.
|
||||
* @param t The token.
|
||||
* @param textArea
|
||||
* The text area.
|
||||
* @param t
|
||||
* The token.
|
||||
* @return Whether we should mark all occurrences of this token.
|
||||
*/
|
||||
boolean isValidType(RSyntaxTextArea textArea, Token t);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Called when occurrences of a token should be marked.
|
||||
*
|
||||
* @param doc The document.
|
||||
* @param t The document whose relevant occurrences should be marked.
|
||||
* @param h The highlighter to add the highlights to.
|
||||
* @param p The painter for the highlights.
|
||||
* @param doc
|
||||
* The document.
|
||||
* @param t
|
||||
* The document whose relevant occurrences should be marked.
|
||||
* @param h
|
||||
* The highlighter to add the highlights to.
|
||||
* @param p
|
||||
* The painter for the highlights.
|
||||
*/
|
||||
void markOccurrences(RSyntaxDocument doc, Token t,
|
||||
RSyntaxTextAreaHighlighter h, SmartHighlightPainter p);
|
||||
|
||||
|
||||
}
|
||||
void markOccurrences(RSyntaxDocument doc, Token t, RSyntaxTextAreaHighlighter h, SmartHighlightPainter p);
|
||||
}
|
||||
Reference in new issue
Block a user