Plugins/VcsPlugins/vcsMercurial/HgExtensionProjectBrowserHelper.py

changeset 3312
7535e5a5cbce
parent 3305
cf4f22a19dc6
child 3359
6b6c224d67d6
equal deleted inserted replaced
3311:b4775920f5b8 3312:7535e5a5cbce
56 @ireturn title of the menu (string) 56 @ireturn title of the menu (string)
57 @exception NotImplementedError raised if the class has not been 57 @exception NotImplementedError raised if the class has not been
58 reimplemented 58 reimplemented
59 """ 59 """
60 raise NotImplementedError 60 raise NotImplementedError
61
62 def showExtensionMenu(self, key, controlled):
63 """
64 Public method to prepare the extension menu for display.
65
66 Note: Derived class must implement this method to adjust the
67 enabled states of its menus.
68
69 @param key menu key (string, one of 'mainMenu', 'multiMenu',
70 'backMenu', 'dirMenu' or 'dirMultiMenu')
71 @param controlled flag indicating to prepare the menu for a
72 version controlled entry or a non-version controlled entry
73 (boolean)
74 @exception NotImplementedError raised if the class has not been
75 reimplemented
76 """
77 raise NotImplementedError
78
79 def _updateVCSStatus(self, name):
80 """
81 Protected method to update the VCS status of an item.
82
83 @param name filename or directoryname of the item to be updated
84 (string)
85 """
86 self.project.getModel().updateVCSStatus(name)

eric ide

mercurial