450451452453454455456457458459460
tempModel = getModelManager().getExistingModelForEdit(id); xmlModelReverted = true; resource.unload(); } finally { if (tempModel != null && (tempModel.getReferenceCountForEdit() > 0)) { tempModel.releaseFromEdit(); } reverting = false; } } } finally {
6869707172737475767778
model.changedModel(); } } } finally { model.releaseFromEdit(); } } } } catch (BadLocationException e) {
6465666768697071727374
cleanupProcessor.cleanupModel(model); } } finally { if (model != null) { model.releaseFromEdit(); } } } } };
9899100101102103104105106107108
model.changedModel(); // end recording ITextSelection selection = (ITextSelection) textEditor.getSelectionProvider().getSelection(); model.endRecording(this, selection.getOffset(), selection.getLength()); model.releaseFromEdit(); } } } }
110111112113114115116117118119120
} } finally { model.changedModel(); model.endRecording(this); model.releaseFromEdit(); } } } private boolean isCommentLine(IDocument document, int line) {
76777879808182838485
model.changedModel(); model.endRecording(this); } } finally { model.releaseFromEdit(); } } } }
7071727374757677787980
model.changedModel(); model.endRecording(this); } } finally { model.releaseFromEdit(); } } } public void init(IAction action) {
4344454647484950515253
if (model != null) { try { formatModel(model, start, length); } finally { model.releaseFromEdit(); } } } }
7273747576777879808182
} finally { // ensureClosed(outputStream, null); // release from model manager if (structuredModel != null) { structuredModel.releaseFromEdit(); } } }
177178179180181182183184185186187
if (model != null) { model.endRecording(this); if (changed) { model.changedModel(); } model.releaseFromEdit(); } } } public static boolean isCommentLine(IDocument document, int line,