UI/BrowserModel.py

changeset 5968
c5112b5cb7a9
parent 5708
9b01b4004314
child 5977
8a0ec75b0f73
--- a/UI/BrowserModel.py	Sat Nov 11 18:47:09 2017 +0100
+++ b/UI/BrowserModel.py	Sun Nov 12 19:42:02 2017 +0100
@@ -1135,6 +1135,8 @@
             self._populated = False
             self._lazyPopulation = True
             self._moduleName = os.path.basename(finfo)
+        elif self.isProtobufFile():
+            pixName = "protobuf.png"
         elif self.isSvgFile():
             pixName = "fileSvg.png"
         elif self.isPixmapFile():
@@ -1285,6 +1287,15 @@
         """
         return self.fileext == '.idl'
     
+    def isProtobufFile(self):
+        """
+        Public method to check, if this file is a Google Protocol Buffer file.
+        
+        @return flag indicating a protobuf file
+        @rtype bool
+        """
+        return self.fileext == ".proto"
+    
     def isJavaScriptFile(self):
         """
         Public method to check, if this file is a JavaScript file.

eric ide

mercurial