UI/BrowserModel.py

changeset 3603
cd14023a8ac1
parent 3601
236578b22511
child 3604
919ebd27fa78
equal deleted inserted replaced
3602:73cad09faca9 3603:cd14023a8ac1
1018 1018
1019 self.type_ = BrowserItemSysPath 1019 self.type_ = BrowserItemSysPath
1020 self.icon = UI.PixmapCache.getIcon("filePython.png") 1020 self.icon = UI.PixmapCache.getIcon("filePython.png")
1021 self._populated = False 1021 self._populated = False
1022 self._lazyPopulation = True 1022 self._lazyPopulation = True
1023
1024 def name(self):
1025 """
1026 Public method to return the name of the item.
1027
1028 @return name of the item (string)
1029 """
1030 return "sys.path"
1023 1031
1024 1032
1025 class BrowserFileItem(BrowserItem): 1033 class BrowserFileItem(BrowserItem):
1026 """ 1034 """
1027 Class implementing the data structure for browser file items. 1035 Class implementing the data structure for browser file items.
1356 self._classObject.classes or 1364 self._classObject.classes or
1357 self._classObject.attributes): 1365 self._classObject.attributes):
1358 self._populated = False 1366 self._populated = False
1359 self._lazyPopulation = True 1367 self._lazyPopulation = True
1360 1368
1369 def name(self):
1370 """
1371 Public method to return the name of the item.
1372
1373 @return name of the item (string)
1374 """
1375 return '{0}@@{1}'.format(self._filename, self.lineno())
1376
1361 def fileName(self): 1377 def fileName(self):
1362 """ 1378 """
1363 Public method returning the filename. 1379 Public method returning the filename.
1364 1380
1365 @return filename (string) 1381 @return filename (string)
1462 if self._functionObject and \ 1478 if self._functionObject and \
1463 (self._functionObject.methods or self._functionObject.classes): 1479 (self._functionObject.methods or self._functionObject.classes):
1464 self._populated = False 1480 self._populated = False
1465 self._lazyPopulation = True 1481 self._lazyPopulation = True
1466 1482
1483 def name(self):
1484 """
1485 Public method to return the name of the item.
1486
1487 @return name of the item (string)
1488 """
1489 return '{0}@@{1}'.format(self._filename, self.lineno())
1490
1467 def fileName(self): 1491 def fileName(self):
1468 """ 1492 """
1469 Public method returning the filename. 1493 Public method returning the filename.
1470 1494
1471 @return filename (string) 1495 @return filename (string)

eric ide

mercurial