#NEWLINE# def run( self , edit ) : #NEWLINE# #INDENT# ( line , column ) = get_line ( self . view ) #NEWLINE# db_dir = get_setting ( SettingObject . table_dir ) #NEWLINE# re_string = '(?i)(^(\\| +)?resource (\\| )?)|(^(\\| +)?library (\\| )?)|(^(\\| +)?variables (\\| )?)' #NEWLINE# import_type = self . import_type ( line ) #NEWLINE# if ( re . search ( re_string , line ) and import_type ) : #NEWLINE# #INDENT# imports = WorkSpaceObjects ( db_dir ) #NEWLINE# self . import_list = imports . get_imports ( import_type ) #NEWLINE# window = self . view . window ( ) #NEWLINE# self . column = self . view . sel ( ) [ 0 ] . begin ( ) #NEWLINE# window . show_quick_panel ( items = self . import_list , on_select = self . on_done ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# message = 'Cursor should have been in settings table Resource, Library or Variables import, but it was not' #NEWLINE# sublime . status_message ( db_dir )