Replaced the deprecated DocumentManager.currentDocumentChange-eventhandler with MainViewManager.currentFileChange