Use official IDocumentController::activeTextDocumentView() over cast-hack

Authored by kossebau on Tue, Nov 12, 1:36 PM.