#NEWLINE# def invoke_refactoring( self , pos ) : #NEWLINE# #INDENT# regions = [ r for r in self . v . sel ( ) ] #NEWLINE# if ( len ( regions ) == 1 ) : #NEWLINE# #INDENT# region = regions [ 0 ] #NEWLINE# if ( region . begin ( ) == region . end ( ) ) : #NEWLINE# #INDENT# self . status_message ( 'Please select a region to extract' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __region_begin = region . begin ( ) #NEWLINE# self . __region_end = region . end ( ) #NEWLINE# self . w . show_input_panel ( self . extract_prompt_message ( ) , '' , self . extract_it , None , None ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . status_message ( 'Select a single region to extract' )