src/eric7/Plugins/PluginSyntaxChecker.py

branch
server
changeset 10582
8264ea1f42e5
parent 10574
622e59b51640
child 10704
27d21e5163b8
equal deleted inserted replaced
10581:edbd772d78c7 10582:8264ea1f42e5
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):

eric ide

mercurial