474 @type Editor |
474 @type Editor |
475 """ |
475 """ |
476 if menuName == "Checks": |
476 if menuName == "Checks": |
477 if self.__editorAct not in menu.actions(): |
477 if self.__editorAct not in menu.actions(): |
478 menu.addAction(self.__editorAct) |
478 menu.addAction(self.__editorAct) |
|
479 # TODO: disable the action for eric-ide server files |
479 self.__editorAct.setEnabled(editor.isPyFile()) |
480 self.__editorAct.setEnabled(editor.isPyFile()) |
480 |
481 |
481 def __editorCodeStyleCheck(self): |
482 def __editorCodeStyleCheck(self): |
482 """ |
483 """ |
483 Private slot to handle the code style check context menu action |
484 Private slot to handle the code style check context menu action |