Improve BAbstractCodeEditorDocument