#NEWLINE# def run( self , edit , external ) : #NEWLINE# #INDENT# 'Run command.' #NEWLINE# self . external = external #NEWLINE# self . menu_options = [ 'View' ] #NEWLINE# if bool ( load_settings ( ) . get ( 'use_selections' , True ) ) : #NEWLINE# #INDENT# self . menu_options . append ( 'Selection(s)' ) #NEWLINE# #UNINDENT# if bool ( load_settings ( ) . get ( 'use_clipboard' , True ) ) : #NEWLINE# #INDENT# self . menu_options . append ( 'Clipboard' ) #NEWLINE# #UNINDENT# if ( len ( self . menu_options ) > 1 ) : #NEWLINE# #INDENT# self . view . window ( ) . show_quick_panel ( self . menu_options , self . check_selection ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . check_selection ( 0 )