--- a/plugger.py Thu Oct 06 22:39:05 2011 +0200
+++ b/plugger.py Sun Oct 09 23:30:18 2011 +0200
@@ -651,6 +651,11 @@
return True
return False
+ def CallMethod(self, method):
+ for d in self.PluginMethods:
+ if d["method"]==method and d.get("enabled", True) and d.get("shown", True):
+ getattr(self, method)()
+
def _GetClassFunction(name):
def GetRootClass():
return getattr(__import__("plugins." + name), name).RootClass
@@ -1385,7 +1390,7 @@
return plc_main_code
- def _build(self):
+ def _Build(self):
"""
Method called by user to (re)build SoftPLC and plugin tree
"""
@@ -1946,7 +1951,7 @@
{"bitmap" : opjimg("Build"),
"name" : _("Build"),
"tooltip" : _("Build project into build folder"),
- "method" : "_build"},
+ "method" : "_Build"},
{"bitmap" : opjimg("Clean"),
"name" : _("Clean"),
"enabled" : False,