Sets the title of the source tabs for either docking or non-docking
versions.
420499
void setSourceTab(String title, @CheckForNull BugInstance bug) {
        mainFrameComponentFactory.setSourceTab(title, bug);
    }
90536
private void inflateTitleView() {
        titleContainer = rootView.findViewById(R.id.title_container);
        titleContainer.removeAllViews();

        if (customTitleView != null) {
            titleContainer.addView(customTitleView);
        } else if (customTitleViewId != -1) {
            LayoutInflater layoutInflater = LayoutInflater.from(getContext());
            View view = layoutInflater.inflate(customTitleViewId, titleContainer, false);
            titleContainer.addView(view);
        } else {
            LayoutInflater layoutInflater = LayoutInflater.from(getContext());
            View view = layoutInflater.inflate(R.layout.bottom_sheet_title, titleContainer, false);
            titleContainer.addView(view);
        }

        if (getStyle() == Style.LIST) {
            int padding = getContext().getResources()
                    .getDimensionPixelSize(R.dimen.bottom_sheet_list_item_horizontal_padding);
            titleContainer.setPadding(padding, 0, padding, 0);
        } else {
            int padding = getContext().getResources()
                    .getDimensionPixelSize(R.dimen.bottom_sheet_grid_item_horizontal_padding);
            titleContainer.setPadding(padding, 0, padding, 0);
        }

        View titleView = titleContainer.findViewById(android.R.id.title);
        titleTextView = titleView instanceof TextView ? (TextView) titleView : null;
    }
1153665
protected void updateTitlePane() {
        setTitlePaneTitle(currentPage.getTitle());
        setTitlePaneImage(currentPage.getImage());
        setDescription(currentPage.getDescription());
    }
287026
def update_tab_label(self, state_m):
        
        state_identifier = self.get_state_identifier(state_m)
        if state_identifier not in self.tabs and state_identifier not in self.closed_tabs:
            return
        tab_info = self.tabs[state_identifier] if state_identifier in self.tabs else self.closed_tabs[state_identifier]
        page = tab_info['page']
        set_tab_label_texts(page.title_label, state_m, tab_info['source_code_view_is_dirty'])
623174
public void setTitleAlignment(final TextAlignment ALIGNMENT) {
        if (null == titleAlignment) {
            _titleAlignment = ALIGNMENT;
            fireTileEvent(RESIZE_EVENT);
        } else {
            titleAlignment.set(ALIGNMENT);
        }
    }
194098
public void setTitle(String title)
    {
        AbstractHtmlState tsh = getState();
        tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, TITLE, title);
    }
366494
public function setTab(string $tab_name, string $tab_title)
    {
        $this->tab = [$tab_name => $tab_title];

        return $this;
    }
764561
function setTabId (sections) {

    sections.forEach(function (section, sectionIndex) {

        if (!Array.isArray(section)) {
            return;
        }

        section.forEach(function (tab, tabIndex) {

            // Replace white space from tab.label with "-", make it lowercase and add the index number at the end.
            // sectionIndex and tabIndex number are added at the end to make the tabID unique in case when more then one tab have the same label (title)
            tab.tabId = (tab.label).replace(/\s+/g, '-').toLowerCase() + '-' + sectionIndex + '-' + tabIndex;

        });

    });

}
1047338
protected function setTitleListSearch()
    {
        $title = $this->text('Search');

        if ($this->data_term !== '') {
            $title = $this->text('Search for «@term»', array('@term' => $this->data_term));
        }

        $this->setTitle($title);
    }
1212329
public void setWindowTitle(String windowTitle) {
        this.log("Setting window title to: " + windowTitle, LogLevel.DEBUG.getLevel());
        this.windowTitle = new StringResource(this.getProject(), windowTitle);
    }
714751
public function setTabTitle($name, $new_name)
    {
        if ($this->hasTab($name)) {
            $this->tabs[$name][static::TITLE] = $new_name;
        }
    }
18826
def update_title(self, _, info):
        # type: (object, TitleInfo) -> None
        """"""
        with self._lock:
            self._block.meta.set_label(info.title)
730765
public void updateTitle() {
        Project project = getProject();
        String name = project.getProjectName();
        if ((name == null || "".equals(name.trim())) && saveFile != null) {
            name = saveFile.getAbsolutePath();
        }
        if (name == null) {
            name = "";//Project.UNNAMED_PROJECT;
        }
        String oldTitle = this.getTitle();
        String newTitle = TITLE_START_TXT + ("".equals(name.trim()) ? "" : " - " + name);
        if (oldTitle.equals(newTitle)) {
            return;
        }
        this.setTitle(newTitle);
    }
199009
public final void setTitle(final String title) {
        if (SwingUtilities.isEventDispatchThread()) {
            setTitleIntern(title);
        } else {
            try {
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        setTitleIntern(title);
                    }
                });
            } catch (final Exception ex) {
                ignore();
            }
        }
    }
414862
def set_title(self, title):
        """"""
        self.head.title.attr(content=title)
        return self
931548
def set_window_title(self):
        """"""
        if DEV is not None:
            title = u"Spyder %s (Python %s.%s)" % (__version__,
                                                   sys.version_info[0],
                                                   sys.version_info[1])
        else:
            title = u"Spyder (Python %s.%s)" % (sys.version_info[0],
                                                sys.version_info[1])

        if get_debug_level():
            title += u" [DEBUG MODE %d]" % get_debug_level()

        if self.window_title is not None:
            title += u' -- ' + to_text_string(self.window_title)

        if self.projects is not None:
            path = self.projects.get_active_project_path()
            if path:
                path = path.replace(get_home_dir(), u'~')
                title = u'{0} - {1}'.format(path, title)

        self.base_title = title
        self.setWindowTitle(self.base_title)
1051876
def tab_complete(self):
        
        opts = self._complete_options()
        if len(opts) == 1:
            self.set_current_text(opts[0] + os.sep)
            self.hide_completer()