#NEWLINE# def run( self , method = 'view' , external = False ) : #NEWLINE# #INDENT# 'Run command.' #NEWLINE# if ( method == 'view' ) : #NEWLINE# #INDENT# self . window . run_command ( 'easy_diff_set_left' , { #NEWLINE# #INDENT# 'group' : EasyDiffListener . last [ 0 ] , #NEWLINE# 'index' : EasyDiffListener . last [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . window . run_command ( 'easy_diff_compare_both_view' , { #NEWLINE# #INDENT# 'external' : external , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( method == 'selection' ) : #NEWLINE# #INDENT# self . window . run_command ( 'easy_diff_set_left_selection' , { #NEWLINE# #INDENT# 'group' : EasyDiffListener . last [ 0 ] , #NEWLINE# 'index' : EasyDiffListener . last [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . window . run_command ( 'easy_diff_compare_both_selection' , { #NEWLINE# #INDENT# 'external' : external , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( method == 'clipboard' ) : #NEWLINE# #INDENT# self . window . run_command ( 'easy_diff_set_left' , { #NEWLINE# #INDENT# 'group' : EasyDiffListener . current [ 0 ] , #NEWLINE# 'index' : EasyDiffListener . current [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . window . run_command ( 'easy_diff_compare_both_clipboard' , { #NEWLINE# #INDENT# 'external' : external , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( method == 'clipboard_selection' ) : #NEWLINE# #INDENT# self . window . run_command ( 'easy_diff_set_left_selection' , { #NEWLINE# #INDENT# 'group' : EasyDiffListener . current [ 0 ] , #NEWLINE# 'index' : EasyDiffListener . current [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . window . run_command ( 'easy_diff_compare_both_clipboard' , { #NEWLINE# #INDENT# 'external' : external , #NEWLINE# #UNINDENT# } )