(int line)
| 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 | /** |
no test coverage detected