235 # *.py should always be associated with source files |
235 # *.py should always be associated with source files |
236 for ext in [".py"]: |
236 for ext in [".py"]: |
237 if ext not in extensions: |
237 if ext not in extensions: |
238 extensions.append(ext) |
238 extensions.append(ext) |
239 return extensions |
239 return extensions |
240 elif language == "Ruby": |
|
241 return ['.rb'] |
|
242 elif language == "JavaScript": |
|
243 return ['.js'] |
|
244 elif language == "Mixed": |
|
245 return (Preferences.getPython("Python3Extensions") + |
|
246 ['.rb', '.js']) |
|
247 else: |
240 else: |
248 return [""] |
241 return { |
|
242 "Ruby": [".rb"], |
|
243 "JavaScript": [".js"], |
|
244 "Mixed": ( |
|
245 Preferences.getPython("Python3Extensions") + |
|
246 ['.rb', '.js']), |
|
247 }.get(language, "") |
249 |
248 |
250 def getProgrammingLanguages(self): |
249 def getProgrammingLanguages(self): |
251 """ |
250 """ |
252 Public method to get the programming languages supported by project. |
251 Public method to get the programming languages supported by project. |
253 |
252 |