MCPcopy Index your code
hub / github.com/arduino/Arduino / addLineHighlight

Method addLineHighlight

app/src/processing/app/Editor.java:1660–1672  ·  view source on GitHub ↗
(int line)

Source from the content-addressed store, hash-verified

1658 }
1659
1660 public void addLineHighlight(int line) throws BadLocationException {
1661 SketchTextArea textArea = getCurrentTab().getTextArea();
1662 FoldManager foldManager = textArea.getFoldManager();
1663 if (foldManager.isLineHidden(line)) {
1664 for (int i = 0; i < foldManager.getFoldCount(); i++) {
1665 if (foldManager.getFold(i).containsLine(line)) {
1666 foldManager.getFold(i).setCollapsed(false);
1667 }
1668 }
1669 }
1670 textArea.addLineHighlight(line, new Color(1, 0, 0, 0.2f));
1671 textArea.setCaretPosition(textArea.getLineStartOffset(line));
1672 }
1673
1674
1675 /**

Callers 1

statusErrorMethod · 0.95

Calls 3

getCurrentTabMethod · 0.95
getTextAreaMethod · 0.80
setCaretPositionMethod · 0.45

Tested by

no test coverage detected