def get_title(self):
def _title(context_model):<EOL><INDENT>context = context_model.context()<EOL>if context is None:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>title = os.path.basename(context.load_path) if context.load_pathelse "<STR_LIT>"<EOL>if context_model.is_modified():<EOL><INDENT>title += '<STR_LIT:*>'<EOL><DEDENT>return title<EOL><DEDENT>if self.diff_mode:<EOL><INDENT>diff_title = _title(self.diff_context_model)<EOL>if self.diff_from_source:<EOL><INDENT>diff_title += "<STR_LIT:'>"<EOL><DEDENT>return "<STR_LIT>" % (_title(self.context_model),<EOL>self.short_double_arrow, diff_title)<EOL><DEDENT>else:<EOL><INDENT>return _title(self.context_model)<EOL><DEDENT>
Returns a string suitable for titling a window containing this table.