def get_editor ( self, trait ):
        from traitsui.api import TextEditor, CompoundEditor

        the_editors = [ x.get_editor( trait ) for x in self.handlers ]
        text_editor = TextEditor()
        count       = 0
        editors     = []
        for editor in the_editors:
            if isinstance( text_editor, editor.__class__ ):
                count += 1
                if count > 1:
                    continue
            editors.append( editor )

        return CompoundEditor( editors = editors )
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitCompound.get_editor/original