Plugins/PluginVcsPySvn.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.vcsPySvn.SvnUtilities import getConfigPath, getServersPath 20 from VcsPlugins.vcsPySvn.SvnUtilities import getConfigPath, getServersPath
123 123
124 def prepareUninstall(): 124 def prepareUninstall():
125 """ 125 """
126 Module function to prepare for an uninstallation. 126 Module function to prepare for an uninstallation.
127 """ 127 """
128 if not e4App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"): 128 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"):
129 Preferences.Prefs.settings.remove("Subversion") 129 Preferences.Prefs.settings.remove("Subversion")
130 130
131 class VcsPySvnPlugin(object): 131 class VcsPySvnPlugin(object):
132 """ 132 """
133 Class implementing the PySvn version control plugin. 133 Class implementing the PySvn version control plugin.
147 } 147 }
148 148
149 from VcsPlugins.vcsPySvn.ProjectHelper import SvnProjectHelper 149 from VcsPlugins.vcsPySvn.ProjectHelper import SvnProjectHelper
150 self.__projectHelperObject = SvnProjectHelper(None, None) 150 self.__projectHelperObject = SvnProjectHelper(None, None)
151 try: 151 try:
152 e4App().registerPluginObject(pluginTypename, self.__projectHelperObject, 152 e5App().registerPluginObject(pluginTypename, self.__projectHelperObject,
153 pluginType) 153 pluginType)
154 except KeyError: 154 except KeyError:
155 pass # ignore duplicate registration 155 pass # ignore duplicate registration
156 readShortcuts(pluginName = pluginTypename) 156 readShortcuts(pluginName = pluginTypename)
157 157
228 228
229 def prepareUninstall(self): 229 def prepareUninstall(self):
230 """ 230 """
231 Public method to prepare for an uninstallation. 231 Public method to prepare for an uninstallation.
232 """ 232 """
233 e4App().unregisterPluginObject(pluginTypename) 233 e5App().unregisterPluginObject(pluginTypename)

eric ide

mercurial