--- a/Project/Project.py Fri Apr 18 15:07:48 2014 +0200 +++ b/Project/Project.py Mon Apr 21 14:32:37 2014 +0200 @@ -2957,6 +2957,16 @@ """ return self.pdata["PROGLANGUAGE"][0] + def isPythonProject(self): + """ + Public method to check, if this project is a Python2 or Python3 + project. + + @return flag indicating a Python project (boolean) + """ + return self.pdata["PROGLANGUAGE"][0] in ["Python", "Python2", + "Python3"] + def isPy3Project(self): """ Public method to check, if this project is a Python3 project. @@ -2981,6 +2991,14 @@ """ return self.pdata["PROGLANGUAGE"][0] == "Ruby" + def isJavaScriptProject(self): + """ + Public method to check, if this project is a JavaScript project. + + @return flag indicating a JavaScript project (boolean) + """ + return self.pdata["PROGLANGUAGE"][0] == "JavaScript" + def getProjectSpellLanguage(self): """ Public method to get the project's programming language.