protected void setLine(String line, int index) {
        if (index < this.uiFileLines.size()) {
            this.uiFileLines.set(index, line);

        } else {
            addLine(line);
        }
    }