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 |
|
412 self.__editorAct.setEnabled( |
411 self.__editorAct.setEnabled( |
413 editor.getLanguage() in self.syntaxCheckService.getLanguages() |
412 editor.getLanguage() in self.syntaxCheckService.getLanguages() |
414 ) |
413 ) |
415 |
414 |
416 def __editorSyntaxCheck(self): |
415 def __editorSyntaxCheck(self): |