src/eric7/Plugins/PluginSyntaxChecker.py

branch
server
changeset 10574
622e59b51640
parent 10439
21c28b0f9e41
child 10582
8264ea1f42e5
equal deleted inserted replaced
10573:c4f503f40caf 10574:622e59b51640
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):

eric ide

mercurial