PluginManager/PluginManager.py

changeset 110
c9a969db1469
parent 45
9a18f4dbb493
child 116
2add429042ef
equal deleted inserted replaced
109:9c72858d4b7a 110:c9a969db1469
855 855
856 def isPluginLoaded(self, pluginName): 856 def isPluginLoaded(self, pluginName):
857 """ 857 """
858 Public method to check, if a certain plugin is loaded. 858 Public method to check, if a certain plugin is loaded.
859 859
860 @param pluginName name of the plugin to check for (string or QString) 860 @param pluginName name of the plugin to check for (string)
861 @return flag indicating, if the plugin is loaded (boolean) 861 @return flag indicating, if the plugin is loaded (boolean)
862 """ 862 """
863 return pluginName in self.__activeModules or \ 863 return pluginName in self.__activeModules or \
864 pluginName in self.__inactiveModules or \ 864 pluginName in self.__inactiveModules or \
865 pluginName in self.__onDemandActiveModules or \ 865 pluginName in self.__onDemandActiveModules or \
867 867
868 def isPluginActive(self, pluginName): 868 def isPluginActive(self, pluginName):
869 """ 869 """
870 Public method to check, if a certain plugin is active. 870 Public method to check, if a certain plugin is active.
871 871
872 @param pluginName name of the plugin to check for (string or QString) 872 @param pluginName name of the plugin to check for (string)
873 @return flag indicating, if the plugin is active (boolean) 873 @return flag indicating, if the plugin is active (boolean)
874 """ 874 """
875 return pluginName in self.__activeModules or \ 875 return pluginName in self.__activeModules or \
876 pluginName in self.__onDemandActiveModules 876 pluginName in self.__onDemandActiveModules
877 877

eric ide

mercurial