--- a/Project/Project.py Mon Apr 21 19:23:08 2014 +0200 +++ b/Project/Project.py Wed Apr 23 21:30:14 2014 +0200 @@ -2963,6 +2963,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. @@ -2987,6 +2997,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.