(self, callingWindow, srcContext, mainItem)
| 16 | self.mainFrame = gui.mainFrame.MainFrame.getInstance() |
| 17 | |
| 18 | def display(self, callingWindow, srcContext, mainItem): |
| 19 | if srcContext not in ("projectedFit", "commandFit", "graphFitListMisc", "graphTgtListMisc"): |
| 20 | return False |
| 21 | |
| 22 | if mainItem is None: |
| 23 | return False |
| 24 | |
| 25 | if isinstance(mainItem, BaseWrapper): |
| 26 | if not mainItem.isFit: |
| 27 | return False |
| 28 | mainItem = mainItem.item |
| 29 | |
| 30 | currentFitID = self.mainFrame.getActiveFit() |
| 31 | selectedFitID = mainItem.ID |
| 32 | if currentFitID == selectedFitID: |
| 33 | return False |
| 34 | return True |
| 35 | |
| 36 | def getText(self, callingWindow, itmContext, mainItem): |
| 37 | return _t("Open Fit in New Tab") |
nothing calls this directly
no test coverage detected