def go_to_item_thread(self, word, name_of_source=None):
     if is_robot_var(word):
         filtered_items = self.autocomplete_owner.get_vars_definitions_list(word)
     else:
         filtered_items = self.autocomplete_owner.get_filtered_keywords_definitions_list(
             word, name_of_source=name_of_source,
             filter_by_attrs=('rfdocs_url', 'documentation'))
     GoToItemThread(self.view, self.view.file_name(),
                    filtered_items,
                    select_item_and_do_action, 'show_doc_in_editor').start()
 def go_to_item_thread(self, word, name_of_source=None):
     if is_robot_var(word):
         filtered_items = self.autocomplete_owner.get_vars_definitions_list(
             word)
     else:
         filtered_items = self.autocomplete_owner.\
             get_filtered_keywords_definitions_list(word,
                                                    name_of_source=name_of_source,
                                                    filter_by_attrs=('rfdocs_url', 'documentation',))
     GoToItemThread(self.view, self.view.file_name(), filtered_items,
                    select_item_and_do_action,
                    'show_doc_in_editor').start()
 def go_to_item_thread(self, word, name_of_source=None):
     if is_robot_var(word):
         filtered_items = self.autocomplete_owner.get_vars_definitions_list(word)
     else:
         # try to get sources(keywords parents - either python libraries or resources)
         sources = self.autocomplete_owner.get_sources_definitions_list(word)
         filtered_items = \
             self.autocomplete_owner.get_filtered_keywords_definitions_list(
                 word, name_of_source=name_of_source, filter_by_attrs=('path',))
         filtered_items.extend(sources)
     GoToItemThread(self.view, self.view.file_name(),
                    filtered_items,
                    select_item_and_do_action, 'goto_source').start()
 def go_to_item_thread(self, word, name_of_source=None):
     if is_robot_var(word):
         filtered_items = self.autocomplete_owner.get_vars_definitions_list(
             word)
     else:
         # try to get sources(keywords parents - either python libraries or resources)
         sources = self.autocomplete_owner.get_sources_definitions_list(
             word)
         filtered_items = \
             self.autocomplete_owner.get_filtered_keywords_definitions_list(
                 word, name_of_source=name_of_source, filter_by_attrs=('path',))
         filtered_items.extend(sources)
     GoToItemThread(self.view, self.view.file_name(), filtered_items,
                    select_item_and_do_action, 'goto_source').start()
Exemplo n.º 5
0
 def name(self, value):
     if not is_robot_var(value):
         raise ValueError(
             'Invalid value given for Robot Framework variable: {0}'.format(
                 value))
     self._name = value
 def name(self, value):
     if not is_robot_var(value):
         raise ValueError('Invalid value given for Robot Framework variable: {0}'.format(value))
     self._name = value