Plugins/ViewManagerPlugins/Listspace/Listspace.py

changeset 88
3701923bccf2
parent 55
b5c84934de9c
child 458
1695e7a2db54
child 792
a13346916170
equal deleted inserted replaced
87:4cc5c8d1184d 88:3701923bccf2
417 index = self.editors.index(editor) 417 index = self.editors.index(editor)
418 if m: 418 if m:
419 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("fileModified.png")) 419 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("fileModified.png"))
420 elif editor.hasSyntaxErrors(): 420 elif editor.hasSyntaxErrors():
421 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("syntaxError.png")) 421 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("syntaxError.png"))
422 elif editor.hasFlakesWarnings():
423 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("warning.png"))
422 else: 424 else:
423 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("empty.png")) 425 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("empty.png"))
424 self.viewlist.setCurrentRow(currentRow) 426 self.viewlist.setCurrentRow(currentRow)
425 self._checkActions(editor) 427 self._checkActions(editor)
426 428
432 """ 434 """
433 currentRow = self.viewlist.currentRow() 435 currentRow = self.viewlist.currentRow()
434 index = self.editors.index(editor) 436 index = self.editors.index(editor)
435 if editor.hasSyntaxErrors(): 437 if editor.hasSyntaxErrors():
436 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("syntaxError.png")) 438 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("syntaxError.png"))
439 elif editor.hasFlakesWarnings():
440 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("warning.png"))
437 else: 441 else:
438 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("empty.png")) 442 self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("empty.png"))
439 self.viewlist.setCurrentRow(currentRow) 443 self.viewlist.setCurrentRow(currentRow)
440 444
441 ViewManager._syntaxErrorToggled(self, editor) 445 ViewManager._syntaxErrorToggled(self, editor)

eric ide

mercurial