UI/UserInterface.py

changeset 6267
350655a6c85f
parent 6244
233eea858c32
child 6273
0daf79d65080
child 6287
9a193ff6d24a
--- a/UI/UserInterface.py	Sun Apr 22 14:01:39 2018 +0200
+++ b/UI/UserInterface.py	Sun Apr 22 19:21:44 2018 +0200
@@ -164,25 +164,36 @@
     
     ErrorLogFileName = "eric6_error.log"
     
-    def __init__(self, app, locale, splash, plugin, noOpenAtStartup,
-                 noCrashOpenAtStartup, disableCrashSession, restartArguments):
+    def __init__(self, app, locale, splash, plugin, disabledPlugins,
+                 noOpenAtStartup, noCrashOpenAtStartup, disableCrashSession,
+                 restartArguments):
         """
         Constructor
         
-        @param app reference to the application object (E5Application)
-        @param locale locale to be used by the UI (string)
+        @param app reference to the application object
+        @type E5Application
+        @param locale locale to be used by the UI
+        @type str
         @param splash reference to the splashscreen
-            (UI.SplashScreen.SplashScreen)
-        @param plugin filename of a plugin to be loaded (used for plugin
+        @type UI.SplashScreen.SplashScreen
+        @param plugin filename of a plug-in to be loaded (used for plugin
             development)
+        @type str
+        @param disabledPlugins list of plug-ins that have been disabled via
+            the command line parameters '--disable-plugin='
+        @type list of str
         @param noOpenAtStartup flag indicating that the open at startup option
-            should not be executed (boolean)
+            should not be executed
+        @type bool
         @param noCrashOpenAtStartup flag indicating to ignore any crash session
-            file found at statup (boolean)
+            file found at statup
+        @type bool
         @param disableCrashSession flag indicating to disable the crash session
-            support (boolean)
+            support
+        @type bool
         @param restartArguments list of command line parameters to be used for
-            a restart (list of strings)
+            a restart
+        @type list of str
         """
         super(UserInterface, self).__init__()
         
@@ -196,6 +207,7 @@
         self.__noOpenAtStartup = noOpenAtStartup
         self.__noCrashOpenAtStartup = noCrashOpenAtStartup
         self.__disableCrashSession = disableCrashSession
+        self.__disabledPlugins = disabledPlugins[:]
         
         self.layoutType, self.embeddedShell, self.embeddedFileBrowser = \
             Preferences.getUILayout()
@@ -245,7 +257,8 @@
         
         # Initialize the Plugin Manager (Plugins are initialized later
         from PluginManager.PluginManager import PluginManager
-        self.pluginManager = PluginManager(self, develPlugin=plugin)
+        self.pluginManager = PluginManager(self, self.__disabledPlugins,
+                                           develPlugin=plugin)
         
         splash.showMessage(self.tr("Generating Main User Interface..."))
         

eric ide

mercurial