controls/SearchResultPanel.py
changeset 899 64aa66d481c5
parent 814 5743cbdff669
child 1556 32e9d0ef30dc
--- a/controls/SearchResultPanel.py	Tue Dec 11 01:19:42 2012 +0100
+++ b/controls/SearchResultPanel.py	Wed Dec 19 13:29:38 2012 +0100
@@ -230,6 +230,21 @@
                             _element_infos["matches"] += len(children)
                             _element_infos["children"].append(element_infos)
                             break
+                    if element_type == ITEM_RESOURCE:
+                        search_results_tree_children.append(element_infos)
+                    else:
+                        _tagname = self.ParentWindow.Controler.ComputePouName(words[1])
+                        _element_type = self.ParentWindow.Controler.GetPouType(words[1])
+                    
+                        _element_infos = {"name": words[1],
+                                          "type": _element_type,
+                                          "data": _tagname,
+                                          "text": None,
+                                          "matches": 1,
+                                          "children": [element_infos]}
+                    
+                        search_results_tree_children.append(_element_infos)
+                
                 else:
                     search_results_tree_children.append(element_infos)