def get_editor(self, obj, kind=None):

        if self.active_window is None:
            return None

        return self.active_window.get_editor(obj, kind)
Return the editor that is editing an object.
dataset/ETHPy150Open enthought/pyface/pyface/workbench/workbench.py/Workbench.get_editor