--- a/editors/IECCodeViewer.py Tue Apr 23 23:02:35 2013 +0200
+++ b/editors/IECCodeViewer.py Wed Apr 24 00:20:13 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