@@ -45,7 +45,7 @@ public class LineID implements DocumentListener {
4545 protected int lineIdx ; // the line number, 0-based
4646 protected Document doc ; // the Document to use for line number tracking
4747 protected Position pos ; // the Position acquired during line number tracking
48- protected Set <LineListener > listeners = new HashSet <LineListener >(); // listeners for line number changes
48+ protected Set <LineHighlight > listeners = new HashSet <LineHighlight >(); // listeners for line number changes
4949
5050 public LineID (String fileName , int lineIdx ) {
5151 this .fileName = fileName ;
@@ -181,7 +181,7 @@ protected synchronized void updatePosition() {
181181 int oldLineIdx = lineIdx ;
182182 lineIdx = doc .getDefaultRootElement ().getElementIndex (offset ); // offset to lineNo
183183 if (lineIdx != oldLineIdx ) {
184- for (LineListener l : listeners ) {
184+ for (LineHighlight l : listeners ) {
185185 if (l != null ) {
186186 l .lineChanged (this , oldLineIdx , lineIdx );
187187 } else {
@@ -197,7 +197,7 @@ protected synchronized void updatePosition() {
197197 *
198198 * @param l the listener to add
199199 */
200- public void addListener (LineListener l ) {
200+ public void addListener (LineHighlight l ) {
201201 listeners .add (l );
202202 }
203203
@@ -206,7 +206,7 @@ public void addListener(LineListener l) {
206206 *
207207 * @param l the listener to remove
208208 */
209- public void removeListener (LineListener l ) {
209+ public void removeListener (LineHighlight l ) {
210210 listeners .remove (l );
211211 }
212212
0 commit comments