406 @type QScintilla.Editor |
406 @type QScintilla.Editor |
407 """ |
407 """ |
408 if menuName == "Checks": |
408 if menuName == "Checks": |
409 if self.__editorAct not in menu.actions(): |
409 if self.__editorAct not in menu.actions(): |
410 menu.addAction(self.__editorAct) |
410 menu.addAction(self.__editorAct) |
|
411 # TODO: disable the action for eric-ide server files |
411 self.__editorAct.setEnabled( |
412 self.__editorAct.setEnabled( |
412 editor.getLanguage() in self.syntaxCheckService.getLanguages() |
413 editor.getLanguage() in self.syntaxCheckService.getLanguages() |
413 ) |
414 ) |
414 |
415 |
415 def __editorSyntaxCheck(self): |
416 def __editorSyntaxCheck(self): |