#NEWLINE# def on_setup_menu( self , menu ) : #NEWLINE# #INDENT# if Constant . is_debug ( ) : #NEWLINE# #INDENT# menu . add_item ( 'main' , [ 'Development Section...' , 'All testing tools' ] , { #NEWLINE# #INDENT# 'name' : 'dev' , #NEWLINE# #UNINDENT# } , ( - 1 ) ) #NEWLINE# #UNINDENT# actions = [ ] #NEWLINE# for snippet in SnippetsManager ( ) . get_snippet_info_list ( ) : #NEWLINE# #INDENT# actions += [ { #NEWLINE# #INDENT# 'command' : 'javatar_create' , #NEWLINE# 'args' : { #NEWLINE# #INDENT# 'create_type' : menu [ 0 ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] #NEWLINE# #UNINDENT# menu . add_items ( 'creates' , SnippetsManager ( ) . get_snippet_info_list ( ) , actions ) #NEWLINE# menu . set_selected_index ( 'creates' , ( 3 if ( len ( actions ) > 0 ) else 2 ) ) #NEWLINE# if Constant . is_debug ( ) : #NEWLINE# #INDENT# menu . add_item ( 'main' , [ 'Reload Javatar' , 'Reload Javatar modules (debug only)' ] , { #NEWLINE# #INDENT# 'command' : 'javatar_utils' , #NEWLINE# 'args' : { #NEWLINE# #INDENT# 'util_type' : 'reload' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , 0 ) #NEWLINE# #UNINDENT# menu . add_item ( 'help' , [ 'Javatar' , ( 'v' + Constant . get_version ( ) ) ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )