Plugins/PluginVcsSubversion.py

changeset 53
c3eb7cc1ff8b
parent 13
1af94a91f439
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
10 import os 10 import os
11 import sys 11 import sys
12 12
13 from PyQt4.QtGui import QApplication 13 from PyQt4.QtGui import QApplication
14 14
15 from E4Gui.E4Application import e4App 15 from E4Gui.E4Application import e5App
16 16
17 import Preferences 17 import Preferences
18 from Preferences.Shortcuts import readShortcuts 18 from Preferences.Shortcuts import readShortcuts
19 19
20 from VcsPlugins.vcsSubversion.SvnUtilities import getConfigPath, getServersPath 20 from VcsPlugins.vcsSubversion.SvnUtilities import getConfigPath, getServersPath
125 125
126 def prepareUninstall(): 126 def prepareUninstall():
127 """ 127 """
128 Module function to prepare for an uninstallation. 128 Module function to prepare for an uninstallation.
129 """ 129 """
130 if not e4App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): 130 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"):
131 Preferences.Prefs.settings.remove("Subversion") 131 Preferences.Prefs.settings.remove("Subversion")
132 132
133 class VcsSubversionPlugin(object): 133 class VcsSubversionPlugin(object):
134 """ 134 """
135 Class implementing the Subversion version control plugin. 135 Class implementing the Subversion version control plugin.
149 } 149 }
150 150
151 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper 151 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper
152 self.__projectHelperObject = SvnProjectHelper(None, None) 152 self.__projectHelperObject = SvnProjectHelper(None, None)
153 try: 153 try:
154 e4App().registerPluginObject(pluginTypename, self.__projectHelperObject, 154 e5App().registerPluginObject(pluginTypename, self.__projectHelperObject,
155 pluginType) 155 pluginType)
156 except KeyError: 156 except KeyError:
157 pass # ignore duplicate registration 157 pass # ignore duplicate registration
158 readShortcuts(pluginName = pluginTypename) 158 readShortcuts(pluginName = pluginTypename)
159 159
230 230
231 def prepareUninstall(self): 231 def prepareUninstall(self):
232 """ 232 """
233 Public method to prepare for an uninstallation. 233 Public method to prepare for an uninstallation.
234 """ 234 """
235 e4App().unregisterPluginObject(pluginTypename) 235 e5App().unregisterPluginObject(pluginTypename)

eric ide

mercurial