Viewer.py
changeset 684 f10449b18dbe
parent 675 0ea836add01f
child 687 629680fb0582
--- a/Viewer.py	Sat May 12 12:33:17 2012 +0200
+++ b/Viewer.py	Fri May 18 18:49:49 2012 +0200
@@ -1966,7 +1966,7 @@
             self.RefreshScrollBars()
             self.RefreshVisibleElements()
             self.RefreshVariablePanel()
-            self.ParentWindow.RefreshInstancesTree()
+            self.ParentWindow.RefreshPouInstanceVariablesPanel()
             block.Refresh()
         dialog.Destroy()
     
@@ -2277,7 +2277,7 @@
             self.RefreshScrollBars()
             self.RefreshVisibleElements()
             self.RefreshVariablePanel()
-            self.ParentWindow.RefreshInstancesTree()
+            self.ParentWindow.RefreshPouInstanceVariablesPanel()
             if old_values["executionOrder"] != new_values["executionOrder"]:
                 self.RefreshView()
             else:
@@ -2690,7 +2690,7 @@
         for element in elements:
             element.RefreshModel()
         wx.CallAfter(self.RefreshVariablePanel)
-        wx.CallAfter(self.ParentWindow.RefreshInstancesTree)
+        wx.CallAfter(self.ParentWindow.RefreshPouInstanceVariablesPanel)
         
     def DeleteVariable(self, variable):
         connectors = variable.GetConnectors()
@@ -2828,7 +2828,7 @@
             self.RefreshBuffer()
             self.RefreshScrollBars()
             self.RefreshVariablePanel()
-            self.ParentWindow.RefreshInstancesTree()
+            self.ParentWindow.RefreshPouInstanceVariablesPanel()
             self.RefreshRect(self.GetScrolledRect(rect), False)
         
     def Copy(self):
@@ -2856,7 +2856,7 @@
                 self.RefreshBuffer()
                 self.RefreshView(selection=result)
                 self.RefreshVariablePanel()
-                self.ParentWindow.RefreshInstancesTree()
+                self.ParentWindow.RefreshPouInstanceVariablesPanel()
             else:
                 message = wx.MessageDialog(self.Editor, result, "Error", wx.OK|wx.ICON_ERROR)
                 message.ShowModal()