src/eric7/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py

branch
eric7
changeset 10069
435cc5875135
parent 9973
d537cba05d38
child 10438
4cd7e5a8b3cf
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
50 isTranslationsBrowser, 50 isTranslationsBrowser,
51 parent, 51 parent,
52 name, 52 name,
53 ) 53 )
54 54
55 def showContextMenu(self, menu, standardItems): 55 def showContextMenu(self, menu, standardItems): # noqa: U100
56 """ 56 """
57 Public slot called before the context menu is shown. 57 Public slot called before the context menu is shown.
58 58
59 It enables/disables the VCS menu entries depending on the overall 59 It enables/disables the VCS menu entries depending on the overall
60 VCS status and the file status. 60 VCS status and the file status.
85 if not os.path.isdir(name): 85 if not os.path.isdir(name):
86 self.vcsMenuAddTree.setEnabled(False) 86 self.vcsMenuAddTree.setEnabled(False)
87 for act in standardItems: 87 for act in standardItems:
88 act.setEnabled(True) 88 act.setEnabled(True)
89 89
90 def showContextMenuMulti(self, menu, standardItems): 90 def showContextMenuMulti(self, menu, standardItems): # noqa: U100
91 """ 91 """
92 Public slot called before the context menu (multiple selections) is 92 Public slot called before the context menu (multiple selections) is
93 shown. 93 shown.
94 94
95 It enables/disables the VCS menu entries depending on the overall 95 It enables/disables the VCS menu entries depending on the overall
126 if 1 in self.browser.specialMenuEntries and self.__itemsHaveFiles(items): 126 if 1 in self.browser.specialMenuEntries and self.__itemsHaveFiles(items):
127 self.vcsMultiMenuAddTree.setEnabled(False) 127 self.vcsMultiMenuAddTree.setEnabled(False)
128 for act in standardItems: 128 for act in standardItems:
129 act.setEnabled(True) 129 act.setEnabled(True)
130 130
131 def showContextMenuDir(self, menu, standardItems): 131 def showContextMenuDir(self, menu, standardItems): # noqa: U100
132 """ 132 """
133 Public slot called before the context menu is shown. 133 Public slot called before the context menu is shown.
134 134
135 It enables/disables the VCS menu entries depending on the overall 135 It enables/disables the VCS menu entries depending on the overall
136 VCS status and the directory status. 136 VCS status and the directory status.
152 for act in self.vcsAddDirMenuActions: 152 for act in self.vcsAddDirMenuActions:
153 act.setEnabled(True) 153 act.setEnabled(True)
154 for act in standardItems: 154 for act in standardItems:
155 act.setEnabled(True) 155 act.setEnabled(True)
156 156
157 def showContextMenuDirMulti(self, menu, standardItems): 157 def showContextMenuDirMulti(self, menu, standardItems): # noqa: U100
158 """ 158 """
159 Public slot called before the context menu is shown. 159 Public slot called before the context menu is shown.
160 160
161 It enables/disables the VCS menu entries depending on the overall 161 It enables/disables the VCS menu entries depending on the overall
162 VCS status and the directory status. 162 VCS status and the directory status.

eric ide

mercurial