Package editor
Class ScopeHighlighter
java.lang.Object
editor.ScopeHighlighter
- All Implemented Interfaces:
FocusListener,EventListener,CaretListener,DocumentListener
public class ScopeHighlighter
extends Object
implements DocumentListener, CaretListener, FocusListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GosuEditorprivate Runnableprivate Objectprivate Objectprivate Timerprivate static final EditorHost.LabHighlighter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidprivate voidprivate voidhighlightMatchBackwards(JEditorPane editor, int i, String c, String oppositeString) private voidhighlightMatchForward(JEditorPane editor, int i, String c, String oppositeString) private voidprivate voidvoidprivate booleanpositionInDoc(int caret, Document doc) voidvoid
-
Field Details
-
_editor
-
_highlightTag
-
_highlightTag2
-
_highlightImmediately
-
_timer
-
HIGHLIGHTER
-
-
Constructor Details
-
ScopeHighlighter
-
-
Method Details
-
updateState
public void updateState() -
highlightImmediately
private void highlightImmediately() -
highlightUsages
private void highlightUsages() -
highlightUsagesUnderCaret
private void highlightUsagesUnderCaret() -
positionInDoc
-
highlightMatchForward
private void highlightMatchForward(JEditorPane editor, int i, String c, String oppositeString) throws BadLocationException - Throws:
BadLocationException
-
highlightMatchBackwards
private void highlightMatchBackwards(JEditorPane editor, int i, String c, String oppositeString) throws BadLocationException - Throws:
BadLocationException
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-
caretUpdate
- Specified by:
caretUpdatein interfaceCaretListener
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-