Improve editor context menu
Fix bug when switching to a non cobol code edit (e.g. a generic code edit)