Project/Project.py

branch
Py2 comp.
changeset 3532
86ac124f322c
parent 3515
1b8381afe38f
parent 3521
7d17803aab56
child 3591
2f2a4a76dd22
--- 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.

eric ide

mercurial