editors/Viewer.py
changeset 1605 0b6b60241230
parent 1599 466c26b0cfc2
child 1607 f9c672ed8f9e
--- a/editors/Viewer.py	Wed Dec 14 12:36:04 2016 +0300
+++ b/editors/Viewer.py	Wed Dec 14 12:44:30 2016 +0300
@@ -887,6 +887,15 @@
             comments.sort(lambda x, y: cmp(x.GetId(), y.GetId()))
         return blocks + wires + comments
 
+    def GetContinuationByName(self, name):
+        blocks = []
+        for block in self.Blocks.itervalues():
+            if isinstance(block, FBD_Connector) and\
+               block.GetType() == CONTINUATION and\
+               block.GetName() == name:
+                blocks.append(block)
+        return blocks
+    
     def GetConnectorByName(self, name):
         for block in self.Blocks.itervalues():
             if isinstance(block, FBD_Connector) and\