(self, extraColSpecs)
| 62 | raise NotImplementedError |
| 63 | |
| 64 | def refreshExtraColumns(self, extraColSpecs): |
| 65 | baseColNames = set() |
| 66 | for baseColName in self.DEFAULT_COLS: |
| 67 | if ":" in baseColName: |
| 68 | baseColName = baseColName.split(":", 1)[0] |
| 69 | baseColNames.add(baseColName) |
| 70 | columnsToRemove = set() |
| 71 | for col in self.activeColumns: |
| 72 | if col.name not in baseColNames: |
| 73 | columnsToRemove.add(col) |
| 74 | for col in columnsToRemove: |
| 75 | self.removeColumn(col) |
| 76 | for colSpec in extraColSpecs: |
| 77 | self.appendColumnBySpec(colSpec) |
| 78 | self.refreshView() |
| 79 | |
| 80 | def refreshView(self): |
| 81 | self.refresh(self.wrappers) |
no test coverage detected