299 Private method to set the right icon for the sources browser tab. |
299 Private method to set the right icon for the sources browser tab. |
300 """ |
300 """ |
301 if not self.project.isOpen(): |
301 if not self.project.isOpen(): |
302 icon = UI.PixmapCache.getIcon("projectSources.png") |
302 icon = UI.PixmapCache.getIcon("projectSources.png") |
303 else: |
303 else: |
304 if self.project.pdata["PROGLANGUAGE"][0] in \ |
304 if self.project.getProjectLanguage() in \ |
305 ["Python", "Python2", "Python3"]: |
305 ["Python", "Python2", "Python3"]: |
306 if self.project.pdata["MIXEDLANGUAGE"][0]: |
306 if self.project.isMixedLanguageProject(): |
307 icon = UI.PixmapCache.getIcon("projectSourcesPyMixed.png") |
307 icon = UI.PixmapCache.getIcon("projectSourcesPyMixed.png") |
308 else: |
308 else: |
309 icon = UI.PixmapCache.getIcon("projectSourcesPy.png") |
309 icon = UI.PixmapCache.getIcon("projectSourcesPy.png") |
310 elif self.project.pdata["PROGLANGUAGE"][0] == "Ruby": |
310 elif self.project.getProjectLanguage() == "Ruby": |
311 if self.project.pdata["MIXEDLANGUAGE"][0]: |
311 if self.project.isMixedLanguageProject(): |
312 icon = UI.PixmapCache.getIcon("projectSourcesRbMixed.png") |
312 icon = UI.PixmapCache.getIcon("projectSourcesRbMixed.png") |
313 else: |
313 else: |
314 icon = UI.PixmapCache.getIcon("projectSourcesRb.png") |
314 icon = UI.PixmapCache.getIcon("projectSourcesRb.png") |
315 elif self.project.pdata["PROGLANGUAGE"][0] == "JavaScript": |
315 elif self.project.getProjectLanguage() == "JavaScript": |
316 icon = UI.PixmapCache.getIcon("projectSourcesJavaScript.png") |
316 icon = UI.PixmapCache.getIcon("projectSourcesJavaScript.png") |
317 else: |
317 else: |
318 icon = UI.PixmapCache.getIcon("projectSources.png") |
318 icon = UI.PixmapCache.getIcon("projectSources.png") |
319 self.setTabIcon(self.indexOf(self.psBrowser), icon) |
319 self.setTabIcon(self.indexOf(self.psBrowser), icon) |
320 |
320 |