def create_editor ( self ):
        from traitsui.api import TitleEditor
        if hasattr(self, 'allow_selection'):
            return TitleEditor(allow_selection=self.allow_selection)
        else:
            return TitleEditor()

#-------------------------------------------------------------------------------
#  'BaseUnicode' and 'Unicode' traits:
#-------------------------------------------------------------------------------
Returns the default traits UI editor to use for a trait.
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/Title.create_editor