419 def activatePlugins(self): |
419 def activatePlugins(self): |
420 """ |
420 """ |
421 Public method to activate all plugins having the "autoactivate" attribute |
421 Public method to activate all plugins having the "autoactivate" attribute |
422 set to True. |
422 set to True. |
423 """ |
423 """ |
424 ial = Preferences.Prefs.settings.value(self.__inactivePluginsKey) |
424 savedInactiveList = Preferences.Prefs.settings.value(self.__inactivePluginsKey) |
425 if ial.isValid(): |
|
426 savedInactiveList = ial.toStringList() |
|
427 else: |
|
428 savedInactiveList = None |
|
429 if self.__develPluginName is not None and \ |
425 if self.__develPluginName is not None and \ |
430 savedInactiveList is not None and \ |
426 savedInactiveList is not None and \ |
431 self.__develPluginName in savedInactiveList: |
427 self.__develPluginName in savedInactiveList: |
432 savedInactiveList.remove(self.__develPluginName) |
428 savedInactiveList.remove(self.__develPluginName) |
433 names = sorted(self.__inactiveModules.keys()) |
429 names = sorted(self.__inactiveModules.keys()) |
710 Public method called to perform actions upon shutdown of the IDE. |
706 Public method called to perform actions upon shutdown of the IDE. |
711 """ |
707 """ |
712 names = [] |
708 names = [] |
713 for name in self.__inactiveModules.keys(): |
709 for name in self.__inactiveModules.keys(): |
714 names.append(name) |
710 names.append(name) |
715 Preferences.Prefs.settings.setValue(self.__inactivePluginsKey, QVariant(names)) |
711 Preferences.Prefs.settings.setValue(self.__inactivePluginsKey, names) |
716 |
712 |
717 self.emit(SIGNAL("shutdown()")) |
713 self.emit(SIGNAL("shutdown()")) |
718 |
714 |
719 def getPluginDisplayStrings(self, type_): |
715 def getPluginDisplayStrings(self, type_): |
720 """ |
716 """ |