src/eric7/Plugins/PluginVcsGit.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9620
9563c83ce83d
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
102 Module function to create the configuration page. 102 Module function to create the configuration page.
103 103
104 @param configDlg reference to the configuration dialog (QDialog) 104 @param configDlg reference to the configuration dialog (QDialog)
105 @return reference to the configuration page 105 @return reference to the configuration page
106 """ 106 """
107 from eric7.Plugins.VcsPlugins.vcsGit.ConfigurationPage.GitPage import GitPage
108
107 global gitCfgPluginObject 109 global gitCfgPluginObject
108 from eric7.Plugins.VcsPlugins.vcsGit.ConfigurationPage.GitPage import GitPage
109 110
110 if gitCfgPluginObject is None: 111 if gitCfgPluginObject is None:
111 gitCfgPluginObject = VcsGitPlugin(None) 112 gitCfgPluginObject = VcsGitPlugin(None)
112 page = GitPage(gitCfgPluginObject) 113 page = GitPage(gitCfgPluginObject)
113 return page 114 return page
179 """ 180 """
180 Constructor 181 Constructor
181 182
182 @param ui reference to the user interface object (UI.UserInterface) 183 @param ui reference to the user interface object (UI.UserInterface)
183 """ 184 """
185 from eric7.Plugins.VcsPlugins.vcsGit.ProjectHelper import GitProjectHelper
186
184 super().__init__(ui) 187 super().__init__(ui)
185 self.__ui = ui 188 self.__ui = ui
186
187 from eric7.Plugins.VcsPlugins.vcsGit.ProjectHelper import GitProjectHelper
188 189
189 self.__projectHelperObject = GitProjectHelper(None, None) 190 self.__projectHelperObject = GitProjectHelper(None, None)
190 with contextlib.suppress(KeyError): 191 with contextlib.suppress(KeyError):
191 ericApp().registerPluginObject( 192 ericApp().registerPluginObject(
192 pluginTypename, self.__projectHelperObject, pluginType 193 pluginTypename, self.__projectHelperObject, pluginType

eric ide

mercurial