Project/ProjectBrowser.py

changeset 5100
2c193da9b94f
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
5099:175b36822cc9 5100:2c193da9b94f
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

eric ide

mercurial