void (boolean done) { super.setDone(done); if (myResetBulkUpdateState) { DocumentEx document = getAffectedDocument(myModel); if (document != null) { document.setInBulkUpdate(false); myResetBulkUpdateState = false; } } if (done) { myModel.commitChanges(); } }