laurent@815: 
laurent@815: from editors.TextViewer import TextViewer
Laurent@1057: from plcopen.plcopen import TestTextElement
laurent@815: 
laurent@815: class IECCodeViewer(TextViewer):
laurent@815:     
laurent@815:     def __del__(self):
laurent@815:         TextViewer.__del__(self)
laurent@815:         if getattr(self, "_OnClose"):
Laurent@1057:             self._OnClose(self)
Laurent@1057:             
Laurent@1057:     def Search(self, criteria):
Laurent@1057:         return [((self.TagName, "body", 0),) + result for result in TestTextElement(self.Editor.GetText(), criteria)]