// undo the java edit
// (so the underlying Java document still represents what's in the
// editor)
if (undo != null) {
try {
undo.apply(getJavaDocument());
}
catch (MalformedTreeException e) {
Logger.logException(e);
}
catch (BadLocationException e) {