Plugins/PluginSyntaxChecker.py

changeset 3621
15f23ed3f216
parent 3591
2f2a4a76dd22
child 3656
441956d8fce5
equal deleted inserted replaced
3620:2c8d96d47cda 3621:15f23ed3f216
293 """<b>Check Syntax...</b>""" 293 """<b>Check Syntax...</b>"""
294 """<p>This checks Python files for syntax errors.</p>""" 294 """<p>This checks Python files for syntax errors.</p>"""
295 )) 295 ))
296 self.__projectBrowserAct.triggered.connect( 296 self.__projectBrowserAct.triggered.connect(
297 self.__projectBrowserSyntaxCheck) 297 self.__projectBrowserSyntaxCheck)
298 if not self.__projectBrowserAct in menu.actions(): 298 if self.__projectBrowserAct not in menu.actions():
299 menu.addAction(self.__projectBrowserAct) 299 menu.addAction(self.__projectBrowserAct)
300 300
301 def __projectSyntaxCheck(self): 301 def __projectSyntaxCheck(self):
302 """ 302 """
303 Private slot used to check the project files for syntax errors. 303 Private slot used to check the project files for syntax errors.
371 @param menuName name of the menu to be shown (string) 371 @param menuName name of the menu to be shown (string)
372 @param menu reference to the menu (QMenu) 372 @param menu reference to the menu (QMenu)
373 @param editor reference to the editor 373 @param editor reference to the editor
374 """ 374 """
375 if menuName == "Checks": 375 if menuName == "Checks":
376 if not self.__editorAct in menu.actions(): 376 if self.__editorAct not in menu.actions():
377 menu.addAction(self.__editorAct) 377 menu.addAction(self.__editorAct)
378 self.__editorAct.setEnabled( 378 self.__editorAct.setEnabled(
379 editor.getLanguage() in self.syntaxCheckService.getLanguages()) 379 editor.getLanguage() in self.syntaxCheckService.getLanguages())
380 380
381 def __editorSyntaxCheck(self): 381 def __editorSyntaxCheck(self):

eric ide

mercurial