UI/BrowserModel.py

changeset 3603
cd14023a8ac1
parent 3601
236578b22511
child 3604
919ebd27fa78
diff -r 73cad09faca9 -r cd14023a8ac1 UI/BrowserModel.py
--- a/UI/BrowserModel.py	Thu May 22 18:24:25 2014 +0200
+++ b/UI/BrowserModel.py	Thu May 22 19:49:41 2014 +0200
@@ -1020,6 +1020,14 @@
         self.icon = UI.PixmapCache.getIcon("filePython.png")
         self._populated = False
         self._lazyPopulation = True
+    
+    def name(self):
+        """
+        Public method to return the name of the item.
+        
+        @return name of the item (string)
+        """
+        return "sys.path"
 
 
 class BrowserFileItem(BrowserItem):
@@ -1358,6 +1366,14 @@
             self._populated = False
             self._lazyPopulation = True
     
+    def name(self):
+        """
+        Public method to return the name of the item.
+        
+        @return name of the item (string)
+        """
+        return '{0}@@{1}'.format(self._filename, self.lineno())
+    
     def fileName(self):
         """
         Public method returning the filename.
@@ -1464,6 +1480,14 @@
             self._populated = False
             self._lazyPopulation = True
     
+    def name(self):
+        """
+        Public method to return the name of the item.
+        
+        @return name of the item (string)
+        """
+        return '{0}@@{1}'.format(self._filename, self.lineno())
+    
     def fileName(self):
         """
         Public method returning the filename.

eric ide

mercurial