1153 self._dirName = os.path.dirname(finfo) |
1153 self._dirName = os.path.dirname(finfo) |
1154 self.sourceLanguage = sourceLanguage |
1154 self.sourceLanguage = sourceLanguage |
1155 |
1155 |
1156 self._moduleName = '' |
1156 self._moduleName = '' |
1157 |
1157 |
1158 # TODO: add icon for eric graphics file |
|
1159 pixName = "" |
1158 pixName = "" |
1160 if self.isPython3File(): |
1159 if self.isPython3File(): |
1161 pixName = "filePython" |
1160 pixName = "filePython" |
1162 self._populated = False |
1161 self._populated = False |
1163 self._lazyPopulation = True |
1162 self._lazyPopulation = True |
1204 elif self.isJavaScriptFile(): |
1203 elif self.isJavaScriptFile(): |
1205 pixName = "fileJavascript" |
1204 pixName = "fileJavascript" |
1206 self._populated = False |
1205 self._populated = False |
1207 self._lazyPopulation = True |
1206 self._lazyPopulation = True |
1208 self._moduleName = os.path.basename(finfo) |
1207 self._moduleName = os.path.basename(finfo) |
|
1208 elif self.isEricGraphicsFile(): |
|
1209 pixName = "fileUML" |
1209 else: |
1210 else: |
1210 pixName = "fileMisc" |
1211 pixName = "fileMisc" |
1211 |
1212 |
1212 if os.path.lexists(self._filename) and os.path.islink(self._filename): |
1213 if os.path.lexists(self._filename) and os.path.islink(self._filename): |
1213 self.symlink = True |
1214 self.symlink = True |