481482483484485486487488489490491
model.loadFrom(idoc); } else { if (savedString != null) { logger.logInfo("Putting back content that we almost lost!", null); try { idoc.replace(0, idoc.getLength(), savedString); } catch (BadLocationException e) { e.printStackTrace(); } } }