linesToCheck.add(new Line(lineBuffer.get(j), j + 1)); //j+1 represents the line number
line += lineBuffer.get(j) + "\f";
}
if (lineMatcher.match(pattern, line)) {
LineMatch lineMatch = new LineMatch(pattern);
addDisplayWindowLines(lineBuffer, linesToCheck);
for (Line l : linesToCheck) {
lineMatch.addLine(l);
}
result.addLineMatch(lineMatch);
i = b + (lineTolerance + 1);
}