#NEWLINE# def apply_layout( self , layout_profile ) : #NEWLINE# #INDENT# if self . env . settings . get ( 'debug_autolayout' ) : #NEWLINE# #INDENT# layout_metadata = self . env . settings . get ( layout_profile , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# layout = layout_metadata . get ( 'layout' , None ) #NEWLINE# if layout : #NEWLINE# #INDENT# self . w . set_layout ( layout ) #NEWLINE# def apply_tool_layout( tool ) : #NEWLINE# #INDENT# g = layout_metadata . get ( tool . name , None ) #NEWLINE# if ( g is not None ) : #NEWLINE# #INDENT# v = ( tool . v if ( tool . v is not None ) else tool . _mk_v ( ) ) #NEWLINE# self . w . set_view_index ( v , g , 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( tool . v is not None ) : #NEWLINE# #INDENT# self . w . focus_view ( tool . v ) #NEWLINE# self . w . run_command ( 'close_file' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# apply_tool_layout ( self . env . stack ) #NEWLINE# apply_tool_layout ( apply_tool_layout . env . watches ) #NEWLINE# apply_tool_layout ( self . env . output )