#NEWLINE# def tryHandleBuildEvent( self , event ) : #NEWLINE# #INDENT# if ( not getSetting ( 'fuse_show_build_results' ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( event . type == 'Fuse.BuildLogged' ) : #NEWLINE# #INDENT# self . __write ( event . data [ 'Message' ] ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( event . type == 'Fuse.LogEvent' ) : #NEWLINE# #INDENT# self . __write ( ( ( 'Output:\t' + event . data [ 'Message' ] ) + '\n' ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( window . type == 'Fuse.BuildEnded' ) : #NEWLINE# #INDENT# status = event . data [ 'Status' ] #NEWLINE# if ( status == 'Success' ) : #NEWLINE# #INDENT# window = self . view . window ( ) #NEWLINE# if ( window is not None ) : #NEWLINE# #INDENT# window . run_command ( 'next_view_in_stack' ) #NEWLINE# #UNINDENT# self . status = BuildStatus . success #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( status == 'Error' ) : #NEWLINE# #INDENT# self . status = BuildStatus . error #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( status == 'InternalError' ) : #NEWLINE# #INDENT# self . status = BuildStatus . internalError #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . __write ( '\n# Build complete.\n\n' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False