eric6/PluginManager/PluginManager.py

changeset 7900
72b88fb20261
parent 7836
2f0d208b8137
child 7923
91e843545d9a
equal deleted inserted replaced
7899:ecf67e07b6e0 7900:72b88fb20261
594 def activatePlugin(self, name, onDemand=False): 594 def activatePlugin(self, name, onDemand=False):
595 """ 595 """
596 Public method to activate a plugin. 596 Public method to activate a plugin.
597 597
598 @param name name of the module to be activated 598 @param name name of the module to be activated
599 @keyparam onDemand flag indicating activation of an 599 @param onDemand flag indicating activation of an
600 on demand plugin (boolean) 600 on demand plugin (boolean)
601 @return reference to the initialized plugin object 601 @return reference to the initialized plugin object
602 @exception PluginActivationError raised to indicate an issue during the 602 @exception PluginActivationError raised to indicate an issue during the
603 plug-in activation 603 plug-in activation
604 """ 604 """
710 def deactivatePlugin(self, name, onDemand=False): 710 def deactivatePlugin(self, name, onDemand=False):
711 """ 711 """
712 Public method to deactivate a plugin. 712 Public method to deactivate a plugin.
713 713
714 @param name name of the module to be deactivated 714 @param name name of the module to be deactivated
715 @keyparam onDemand flag indicating deactivation of an 715 @param onDemand flag indicating deactivation of an
716 on demand plugin (boolean) 716 on demand plugin (boolean)
717 """ 717 """
718 try: 718 try:
719 if onDemand: 719 if onDemand:
720 module = self.__onDemandActiveModules[name] 720 module = self.__onDemandActiveModules[name]
763 Public method to activate an ondemand plugin given by type and 763 Public method to activate an ondemand plugin given by type and
764 typename. 764 typename.
765 765
766 @param type_ type of the plugin to be activated (string) 766 @param type_ type of the plugin to be activated (string)
767 @param typename name of the plugin within the type category (string) 767 @param typename name of the plugin within the type category (string)
768 @keyparam maybeActive flag indicating, that the plugin may be active 768 @param maybeActive flag indicating, that the plugin may be active
769 already (boolean) 769 already (boolean)
770 @return reference to the initialized plugin object 770 @return reference to the initialized plugin object
771 """ 771 """
772 for name, module in list(self.__onDemandInactiveModules.items()): 772 for name, module in list(self.__onDemandInactiveModules.items()):
773 if ( 773 if (

eric ide

mercurial