Plugins/PluginSyntaxChecker.py

changeset 571
1a4101cb87eb
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
equal deleted inserted replaced
570:43a680c5c8e6 571:1a4101cb87eb
171 """ 171 """
172 Public slot used to check the project files for bad indentations. 172 Public slot used to check the project files for bad indentations.
173 """ 173 """
174 project = e5App().getObject("Project") 174 project = e5App().getObject("Project")
175 project.saveAllScripts() 175 project.saveAllScripts()
176 files = [os.path.join(project.ppath, file) \ 176 ppath = project.getProjectPath()
177 files = [os.path.join(ppath, file) \
177 for file in project.pdata["SOURCES"] \ 178 for file in project.pdata["SOURCES"] \
178 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))] 179 if file.endswith(tuple(Preferences.getPython("Python3Extensions")))]
179 180
180 self.__projectSyntaxCheckerDialog = SyntaxCheckerDialog() 181 self.__projectSyntaxCheckerDialog = SyntaxCheckerDialog()
181 self.__projectSyntaxCheckerDialog.show() 182 self.__projectSyntaxCheckerDialog.show()
182 self.__projectSyntaxCheckerDialog.start(files) 183 self.__projectSyntaxCheckerDialog.prepare(files, project)
183 184
184 def __projectBrowserSyntaxCheck(self): 185 def __projectBrowserSyntaxCheck(self):
185 """ 186 """
186 Private method to handle the syntax check context menu action of the project 187 Private method to handle the syntax check context menu action of the project
187 sources browser. 188 sources browser.

eric ide

mercurial