return;
}
if (doc instanceof BasicStructuredDocument) {
((BasicStructuredDocument)doc).makeReadOnly(node.getStart(), node.getLength(), canInsertBefore, canInsertAfter);
} else {
doc.makeReadOnly(node.getStart(), node.getLength());
}
}
static private void unlock(IStructuredDocumentRegion node) {
if (node == null) {