By default you can't get that MenuManager easily, unless the specific
type of text editor exports it. Are you subclassing a text editor? Or
you do you just want the general "text editor" class of editors?
What exactly are you trying to do? If it's just to add to a context
menu, you can use org.eclipse.ui.popupMenus to do it.