1133 elif self.isIdlFile(): |
1133 elif self.isIdlFile(): |
1134 pixName = "fileIDL.png" |
1134 pixName = "fileIDL.png" |
1135 self._populated = False |
1135 self._populated = False |
1136 self._lazyPopulation = True |
1136 self._lazyPopulation = True |
1137 self._moduleName = os.path.basename(finfo) |
1137 self._moduleName = os.path.basename(finfo) |
|
1138 elif self.isProtobufFile(): |
|
1139 pixName = "protobuf.png" |
1138 elif self.isSvgFile(): |
1140 elif self.isSvgFile(): |
1139 pixName = "fileSvg.png" |
1141 pixName = "fileSvg.png" |
1140 elif self.isPixmapFile(): |
1142 elif self.isPixmapFile(): |
1141 pixName = "filePixmap.png" |
1143 pixName = "filePixmap.png" |
1142 elif self.isDFile(): |
1144 elif self.isDFile(): |
1282 Public method to check, if this file is a CORBA IDL file. |
1284 Public method to check, if this file is a CORBA IDL file. |
1283 |
1285 |
1284 @return flag indicating a CORBA IDL file (boolean) |
1286 @return flag indicating a CORBA IDL file (boolean) |
1285 """ |
1287 """ |
1286 return self.fileext == '.idl' |
1288 return self.fileext == '.idl' |
|
1289 |
|
1290 def isProtobufFile(self): |
|
1291 """ |
|
1292 Public method to check, if this file is a Google Protocol Buffer file. |
|
1293 |
|
1294 @return flag indicating a protobuf file |
|
1295 @rtype bool |
|
1296 """ |
|
1297 return self.fileext == ".proto" |
1287 |
1298 |
1288 def isJavaScriptFile(self): |
1299 def isJavaScriptFile(self): |
1289 """ |
1300 """ |
1290 Public method to check, if this file is a JavaScript file. |
1301 Public method to check, if this file is a JavaScript file. |
1291 |
1302 |