563 def activatePlugins(self): |
563 def activatePlugins(self): |
564 """ |
564 """ |
565 Public method to activate all plugins having the "autoactivate" |
565 Public method to activate all plugins having the "autoactivate" |
566 attribute set to True. |
566 attribute set to True. |
567 """ |
567 """ |
568 savedInactiveList = Preferences.Prefs.settings.value( |
568 savedInactiveList = Preferences.getSettings().value( |
569 self.__inactivePluginsKey) |
569 self.__inactivePluginsKey) |
570 inactiveList = self.__disabledPlugins[:] |
570 inactiveList = self.__disabledPlugins[:] |
571 if savedInactiveList is not None: |
571 if savedInactiveList is not None: |
572 inactiveList += [p for p in savedInactiveList |
572 inactiveList += [p for p in savedInactiveList |
573 if p not in self.__disabledPlugins] |
573 if p not in self.__disabledPlugins] |
907 Public method called to perform actions upon shutdown of the IDE. |
907 Public method called to perform actions upon shutdown of the IDE. |
908 """ |
908 """ |
909 names = [] |
909 names = [] |
910 for name in list(self.__inactiveModules.keys()): |
910 for name in list(self.__inactiveModules.keys()): |
911 names.append(name) |
911 names.append(name) |
912 Preferences.Prefs.settings.setValue(self.__inactivePluginsKey, names) |
912 Preferences.getSettings().setValue(self.__inactivePluginsKey, names) |
913 |
913 |
914 self.shutdown.emit() |
914 self.shutdown.emit() |
915 |
915 |
916 def getPluginDisplayStrings(self, type_): |
916 def getPluginDisplayStrings(self, type_): |
917 """ |
917 """ |