156157158159160161162163164165166
// the formatting document.set(beforeFormat); modelForEdit.save(); } finally { if (modelForEdit != null) { modelForEdit.releaseFromEdit(); } } } }); } catch (final Exception e) {
8485868788899091929394
structuredModel.save(); } finally { // ensureClosed(outputStream, null); // release from model manager if (structuredModel != null) structuredModel.releaseFromEdit(); } } } public void formatModel(IStructuredModel structuredModel, int start,
311312313314315316317318319320321
pages.appendChild(page); } model.save(); } finally { if(model!=null){ model.releaseFromEdit(); } monitor.worked(1); } }
179180181182183184185186187188189
if (model != null) { model.endRecording(this); if (changed) { model.changedModel(); } model.releaseFromEdit(); } } }
8889909192939495969798
7576777879808182838485
legacyXmlElement.getParentNode().removeChild(legacyXmlElement); } finally { if (model != null) { model.releaseFromEdit(); } } } private Element createNamespaceSyntaxXmlElement(IBean bean, String elementName, Document document) {
159160161162163164165166167168169
catch (CoreException e) { StatusHandler.log(e.getStatus()); } finally { if (model != null) { model.releaseFromEdit(); model = null; } } }
118119120121122123124125126127128
} return 0; } finally { if (model != null) { model.releaseFromEdit(); } } } @Override
146147148149150151152153154155156
} } finally { if (model != null) { model.releaseFromEdit(); } } } public String getDisplayString() {
804805806807808809810811812813814
releaseModel(); model = (IDOMModel) structModel; domDocument = model.getDocument(); } else { structModel.releaseFromEdit(); } } } headerMessage.updateMessage(); }