99 Module function to create the configuration page. |
99 Module function to create the configuration page. |
100 |
100 |
101 @param configDlg reference to the configuration dialog (QDialog) |
101 @param configDlg reference to the configuration dialog (QDialog) |
102 @return reference to the configuration page |
102 @return reference to the configuration page |
103 """ |
103 """ |
104 global mercurialCfgPluginObject |
|
105 from eric7.Plugins.VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage import ( |
104 from eric7.Plugins.VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage import ( |
106 MercurialPage, |
105 MercurialPage, |
107 ) |
106 ) |
|
107 |
|
108 global mercurialCfgPluginObject |
108 |
109 |
109 if mercurialCfgPluginObject is None: |
110 if mercurialCfgPluginObject is None: |
110 mercurialCfgPluginObject = VcsMercurialPlugin(None) |
111 mercurialCfgPluginObject = VcsMercurialPlugin(None) |
111 page = MercurialPage(mercurialCfgPluginObject) |
112 page = MercurialPage(mercurialCfgPluginObject) |
112 return page |
113 return page |
186 """ |
187 """ |
187 Constructor |
188 Constructor |
188 |
189 |
189 @param ui reference to the user interface object (UI.UserInterface) |
190 @param ui reference to the user interface object (UI.UserInterface) |
190 """ |
191 """ |
|
192 from eric7.Plugins.VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper |
|
193 |
191 super().__init__(ui) |
194 super().__init__(ui) |
192 self.__ui = ui |
195 self.__ui = ui |
193 |
|
194 from eric7.Plugins.VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper |
|
195 |
196 |
196 self.__projectHelperObject = HgProjectHelper(None, None) |
197 self.__projectHelperObject = HgProjectHelper(None, None) |
197 with contextlib.suppress(KeyError): |
198 with contextlib.suppress(KeyError): |
198 ericApp().registerPluginObject( |
199 ericApp().registerPluginObject( |
199 pluginTypename, self.__projectHelperObject, pluginType |
200 pluginTypename, self.__projectHelperObject, pluginType |