model = StructuredModelManager.getModelManager()
.getModelForEdit(document);
if (model != null) {
// makes it so one undo will undo all the edits to the
// document
model.beginRecording(this,
SSEUIMessages.ToggleComment_label,
SSEUIMessages.ToggleComment_description);
// keeps listeners from doing anything until updates are all
// done