PluginManager/PluginManager.py

changeset 5223
4c0b3ee7d2d8
parent 4798
ee1a24311b03
child 5236
9487d3fbb71e
--- a/PluginManager/PluginManager.py	Sun Oct 09 13:38:19 2016 +0200
+++ b/PluginManager/PluginManager.py	Mon Oct 10 19:21:22 2016 +0200
@@ -900,6 +900,23 @@
         
         return apis
         
+    def getPluginQtHelpFiles(self):
+        """
+        Public method to get the list of QtHelp documentation files provided
+        by a plug-in.
+        
+        @return dictionary with documentation type as key and list of files
+            as value
+        @rtype dict (key: str, value: list of str)
+        """
+        helpFiles = {}
+        for module in list(self.__activeModules.values()) + \
+                list(self.__onDemandActiveModules.values()):
+            if hasattr(module, "helpFiles"):
+                helpFiles.update(module.helpFiles())
+        
+        return helpFiles
+        
     def getPluginExeDisplayData(self):
         """
         Public method to get data to display information about a plugins

eric ide

mercurial