public void highlight(EditorCell cell, EditorCell cell2, Color c) { assert SwingUtilities.isEventDispatchThread() : "LeftEditorHighlighter.unHighlight() should be called in eventDispatchThread"; assert cell.getEditor() == myEditorComponent : "cell must be from my editor"; myBracketsPainter.addBracket(cell, cell2, c); }
public void unHighlight(EditorCell cell) { assert SwingUtilities.isEventDispatchThread() : "LeftEditorHighlighter.unHighlight() should be called in eventDispatchThread"; myBracketsPainter.removeBracket(cell); }