private void postSave() { if (textEditorComponent != null) { if (textEditorComponent.ChangesMade) { if (rmlComponent != null) { String undoRml = rmlComponent.UnformattedRml; rmlComponent.reloadDocument(); rmlComponent.updateUndoStatus(undoRml, true); } textEditorComponent.resetChangesMade(); } } }