protected UndoEdit InsertText(IDocument doc2Alter, int offset, String newText)
{
UndoEdit insertion = null;
InsertEdit newEdit = new InsertEdit(offset, newText);
try {
newEdit.apply(doc2Alter);
} catch(BadLocationException e) { // And context for the worst variable names goes to me!
// Still doing nowt...
}
return insertion;
}