def insertTab(self, text, asHTML, beforeIndex=None):
        if beforeIndex is None:
            beforeIndex = asHTML
            asHTML = False

        if (beforeIndex < 0) or (beforeIndex > self.getTabCount()):
            #throw new IndexOutOfBoundsException();
            pass

        if text is None:
            text = HTML("&nbsp;", True)
            text.setWidth("100%")
            text.setStyleName("gwt-TabBarRest")
            self.panel.insert(text, beforeIndex + 1)
            self.panel.setCellWidth(text, "100%")
            return

        istext = isinstance(text, basestring)

        if istext:
            if asHTML:
                item = HTML(text)
            else:
                item = Label(text)
            item.setWordWrap(False)
        else:
            # passing in a widget, it's expected to have its own style
            item = text

        self.insertTabWidget(item, beforeIndex)
Perform an OS reload of an instance.
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/TabBar.py/TabBar.insertTab--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/vs.py/VSManager.reload_instance