editors/IECCodeViewer.py
changeset 1062 fd7c9a7cf882
parent 1057 3837e165b3f9
child 1262 7b9259945453
--- a/editors/IECCodeViewer.py	Wed Apr 24 18:34:00 2013 +0900
+++ b/editors/IECCodeViewer.py	Wed Apr 24 17:37:46 2013 +0200
@@ -1,9 +1,13 @@
 
 from editors.TextViewer import TextViewer
+from plcopen.plcopen import TestTextElement
 
 class IECCodeViewer(TextViewer):
     
     def __del__(self):
         TextViewer.__del__(self)
         if getattr(self, "_OnClose"):
-            self._OnClose(self)
\ No newline at end of file
+            self._OnClose(self)
+            
+    def Search(self, criteria):
+        return [((self.TagName, "body", 0),) + result for result in TestTextElement(self.Editor.GetText(), criteria)]
\ No newline at end of file