|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.ErrorCaretListener
public class ErrorCaretListener
Listens to the caret in the associated DefinitionsPane and highlights the text containing CompilerErrors.
| Field Summary | |
|---|---|
private DefinitionsPane |
_definitionsPane
|
protected MainFrame |
_frame
|
private OpenDefinitionsDocument |
_openDoc
|
| Constructor Summary | |
|---|---|
ErrorCaretListener(OpenDefinitionsDocument doc,
DefinitionsPane defPane,
MainFrame frame)
Constructs a new caret listener to highlight errors. |
|
| Method Summary | |
|---|---|
private void |
_highlightErrorInSource(Position pos)
Highlights the given error in the source. |
void |
caretUpdate(CaretEvent evt)
After each update to the caret, determine if changes in highlighting need to be made. |
OpenDefinitionsDocument |
getOpenDefDoc()
Gets the OpenDefinitionsDocument corresponding to this listener. |
void |
removeHighlight()
Hides the error highlight in the document. |
void |
updateHighlight(int curPos)
Update the highlight appropriately. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final OpenDefinitionsDocument _openDoc
private final DefinitionsPane _definitionsPane
protected final MainFrame _frame
| Constructor Detail |
|---|
public ErrorCaretListener(OpenDefinitionsDocument doc,
DefinitionsPane defPane,
MainFrame frame)
| Method Detail |
|---|
public OpenDefinitionsDocument getOpenDefDoc()
public void caretUpdate(CaretEvent evt)
caretUpdate in interface CaretListenerpublic void updateHighlight(int curPos)
public void removeHighlight()
private void _highlightErrorInSource(Position pos)
pos - the position of the error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||