#NEWLINE# def __get_display_name( self , view ) : #NEWLINE# #INDENT# mod_star = ( '*' if view . is_dirty ( ) else '' ) #NEWLINE# if ( view . is_scratch ( ) or ( not view . file_name ( ) ) ) : #NEWLINE# #INDENT# disp_name = ( view . name ( ) if ( len ( view . name ( ) ) > 0 ) else 'untitled' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# disp_name = os . path . basename ( view . file_name ( ) ) #NEWLINE# #UNINDENT# return ( '%s%s' % ( view , mod_star ) )