--- a/Beremiz.py Wed Dec 19 13:29:38 2012 +0100
+++ b/Beremiz.py Wed Dec 19 13:32:04 2012 +0100
@@ -1038,7 +1038,22 @@
self._Refresh(TITLE, FILEMENU, PROJECTTREE)
+#------------------------------------------------------------------------------- +# Highlights showing functions +#------------------------------------------------------------------------------- + def ShowHighlight(self, infos, start, end, highlight_type): + config_name = self.Controler.GetProjectMainConfigurationName() + if config_name is not None and infos[0] == self.Controler.ComputeConfigurationName(config_name): + selected = self.TabsOpened.GetSelection() + viewer = self.TabsOpened.GetPage(selected) + viewer.AddHighlight(infos[1:], start, end, highlight_type) + IDEFrame.ShowHighlight(self, infos, start, end, highlight_type) #-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
--- a/controls/PouInstanceVariablesPanel.py Wed Dec 19 13:29:38 2012 +0100
+++ b/controls/PouInstanceVariablesPanel.py Wed Dec 19 13:32:04 2012 +0100
@@ -106,6 +106,10 @@
def SetPouType(self, tagname, pou_instance=None):
self.PouTagName = tagname
+ if self.PouTagName == "Project": + config_name = self.Controller.GetProjectMainConfigurationName() + if config_name is not None: + self.PouTagName = self.Controller.ComputeConfigurationName(config_name) if pou_instance is not None:
self.PouInstance = pou_instance