Plugins/PluginVcsPySvn.py

changeset 4115
0c70a8f8d54a
parent 4079
a3319822d303
child 4535
ec12db87e8c0
child 4632
ca310db386ed
--- a/Plugins/PluginVcsPySvn.py	Sun Feb 15 18:02:47 2015 +0100
+++ b/Plugins/PluginVcsPySvn.py	Mon Feb 16 19:02:35 2015 +0100
@@ -175,6 +175,17 @@
         """
         return self.__projectHelperObject
 
+    def initToolbar(self, ui, toolbarManager):
+        """
+        Public slot to initialize the VCS toolbar.
+        
+        @param ui reference to the main window (UserInterface)
+        @param toolbarManager reference to a toolbar manager object
+            (E5ToolBarManager)
+        """
+        if self.__projectHelperObject:
+            self.__projectHelperObject.initToolbar(ui, toolbarManager)
+    
     def activate(self):
         """
         Public method to activate this plugin.
@@ -259,3 +270,12 @@
         Public method to prepare for an uninstallation.
         """
         e5App().unregisterPluginObject(pluginTypename)
+    
+    def prepareUnload(self):
+        """
+        Public method to prepare for an unload.
+        """
+        if self.__projectHelperObject:
+            self.__projectHelperObject.removeToolbar(
+                self.__ui, e5App().getObject("ToolbarManager"))
+        e5App().unregisterPluginObject(pluginTypename)

eric ide

mercurial