239 self.__menu.addSeparator() |
239 self.__menu.addSeparator() |
240 self.__menu.addAction( |
240 self.__menu.addAction( |
241 self.tr("Extract Function"), self.__jediServer.refactoringExtractFunction |
241 self.tr("Extract Function"), self.__jediServer.refactoringExtractFunction |
242 ) |
242 ) |
243 |
243 |
244 def __editorShowMenu(self, menuName, menu, editor): # noqa: U100 |
244 def __editorShowMenu(self, menuName, _menu, editor): |
245 """ |
245 """ |
246 Private slot called, when the the editor context menu or a submenu is |
246 Private slot called, when the the editor context menu or a submenu is |
247 about to be shown. |
247 about to be shown. |
248 |
248 |
249 @param menuName name of the menu to be shown |
249 @param menuName name of the menu to be shown |
250 @type str |
250 @type str |
251 @param menu reference to the menu |
251 @param _menu reference to the menu (unused) |
252 @type QMenu |
252 @type QMenu |
253 @param editor reference to the editor |
253 @param editor reference to the editor |
254 @type Editor |
254 @type Editor |
255 """ |
255 """ |
256 if menuName == "Main": |
256 if menuName == "Main": |