MCPcopy Index your code
hub / github.com/benfry/processing4 / updateEditorStatus

Method updateEditorStatus

app/src/processing/app/ui/Editor.java:2600–2611  ·  view source on GitHub ↗

Updates editor status bar, depending on whether the caret is on an error line or not

()

Source from the content-addressed store, hash-verified

2598 * line or not
2599 */
2600 public void updateEditorStatus() {
2601 Problem problem = findProblem(textarea.getCaretLine());
2602 if (problem != null) {
2603 int type = problem.isError() ?
2604 EditorStatus.CURSOR_LINE_ERROR : EditorStatus.CURSOR_LINE_WARNING;
2605 statusMessage(problem.getMessage(), type);
2606 } else {
2607 switch (getStatusMode()) {
2608 case EditorStatus.CURSOR_LINE_ERROR, EditorStatus.CURSOR_LINE_WARNING -> statusEmpty();
2609 }
2610 }
2611 }
2612
2613
2614 /**

Callers 2

EditorMethod · 0.95
setProblemListMethod · 0.95

Calls 7

findProblemMethod · 0.95
isErrorMethod · 0.95
statusMessageMethod · 0.95
getMessageMethod · 0.95
getStatusModeMethod · 0.95
statusEmptyMethod · 0.95
getCaretLineMethod · 0.80

Tested by

no test coverage detected