def can_add_to_menu ( self, action, action_event = None ):
        if action.defined_when == '':
            return True

        return self.ui.eval_when( action.defined_when )

    #---------------------------------------------------------------------------
    #  Returns whether the toolbar action should be defined in the user
    #  interface:
    #---------------------------------------------------------------------------
All items of this :class:`Structure`. Implemented by subclasses.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/ui_base.py/BaseDialog.can_add_to_menu--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/odm/struct.py/Structure.items