def _get_editors(self, item): name = item and item.name or '' args = item and utils.join_value(item.args) or '' alias = item.alias if item else '' self._suggester = LibrariesSuggester(self._controller, self._history_suggester) return [FileNameEditor(self, name, 'Name', self._controller, suggestion_source=self._suggester), ValueEditor(self, args, 'Args'), ValueEditor(self, alias, 'Alias')]
def _get_editors(self, uk): value = uk.name if uk else '' return [ ValueEditor(self, value, 'Name', UserKeywordNameValidator(self._controller)), ArgumentEditor(self, '', 'Arguments', ArgumentsValidator()) ]
def _get_editors(self, var): name = var.name if var and var.name else '${}' value = var.value[0] if var else '' validator = ScalarVariableNameValidator(self._controller, name) return [ VariableNameEditor(self, name, 'Name', validator), ValueEditor(self, value, 'Value') ]
def _get_editors(self, item): path = item and item.name or '' args = item and utils.join_value(item.args) or '' return [ FileNameEditor(self, path, 'Path', self._controller, suggestion_source=self._history_suggester), ValueEditor(self, args, 'Args') ]
def _add_comment_editor(self, item): comment = ListToStringFormatter(item.comment).value if item else '' self._comment_editor = ValueEditor(self, comment, 'Comment') self._sizer.Add(self._comment_editor)
def _get_editors(self, test): value = test.name if test else '' return [ ValueEditor(self, value, 'Name', TestCaseNameValidator(self._controller)) ]
def _get_editors(self, item): name, value = item and (item.name, item.value) or ('', '') return [ ValueEditor(self, name, 'Name'), ValueEditor(self, value, 'Value') ]
def _get_editors(self, item): editor = ValueEditor(self, item.value) if self._validator: editor.set_validator(self._validator()) return [editor]