code: def get_tab_tip(self, filename, is_modified=None, is_readonly=None):
          
          text = u"%s — %s"
          text = self.__modified_readonly_title(text,
                                                is_modified, is_readonly)
          if self.tempfile_path is not None\
             and filename == encoding.to_unicode_from_fs(self.tempfile_path):
              temp_file_str = to_text_string(_("Temporary file"))
              return text % (temp_file_str, self.tempfile_path)
          else:
              return text % (osp.basename(filename), osp.dirname(filename))
docs: Return tab menu title