/**
* Sets the lines to ignore when reading files from this location.
*/
@Override
public final void setLinesToIgnore(IgnoredLines lines) {
IgnoredLines old;
synchronized (getDataLock()) {
old = getLinesToIgnore();
setProperty(LocatableProperties.IGNORE_FIRST_LINES, String.valueOf(lines.getFirst()));
setProperty(LocatableProperties.IGNORE_LAST_LINES, String.valueOf(lines.getLast()));
}
if (!old.equals(lines)) {
firePropertyChange(LINES_TO_IGNORE, old, lines);
}
}