#NEWLINE# def _selected_changed( self , old , new ) : #NEWLINE# #INDENT# " Activates the corresponding dock window when the 'selected' trait\n        of the editor is changed.\n        " #NEWLINE# for ( i , value ) in enumerate ( self . _uis ) : #NEWLINE# #INDENT# if ( new == self [ 1 ] ) : #NEWLINE# #INDENT# value [ 0 ] . activate ( ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# return