Project/Project.py

changeset 3521
7d17803aab56
parent 3503
2e98a3705f15
child 3532
86ac124f322c
diff -r 1d681235c1b4 -r 7d17803aab56 Project/Project.py
--- 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.

eric ide

mercurial