def get_editor ( self, trait ):
        if self.editor is None:
            from traitsui.api import InstanceEditor

            self.editor = InstanceEditor( label = trait.label or '',
                                          view  = trait.view  or '',
                                          kind  = trait.kind  or 'live' )
        return self.editor

#-------------------------------------------------------------------------------
#  'TraitInstance' class:
#-------------------------------------------------------------------------------

# Mapping from 'adapt' parameter values to 'fast validate' values
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/ThisClass.get_editor/original