if (temp.getLineOffset(line) + temp.getLineLength(line) == temp.getLength())
break;
line++;
offset = temp.getLineOffset(line);
}
temp.stopRewriteSession(session);
removeStuff(temp);
c.text = temp.get(c.offset, temp.getLength() - c.offset);
} catch (BadLocationException e) {
e.printStackTrace();
}