private void fireProgressEvent ( int state , int progress , String messageKey , RepositoryResource installResource ) throws InstallException { String resourceName = null ; if ( installResource instanceof EsaResource ) { EsaResource esar = ( ( EsaResource ) installResource ) ; if ( esar . getVisibility ( ) . equals ( Visibility . PUBLIC ) || esar . getVisibility ( ) . equals ( Visibility . INSTALL ) ) { resourceName = ( esar . getShortName ( ) == null ) ? installResource . getName ( ) : esar . getShortName ( ) ; } else if ( ! firePublicAssetOnly && messageKey . equals ( "STATE_DOWNLOADING" ) ) { messageKey = "STATE_DOWNLOADING_DEPENDENCY" ; resourceName = "" ; } else { return ; } } if ( installResource instanceof SampleResource ) { SampleResource sr = ( ( SampleResource ) installResource ) ; resourceName = sr . getShortName ( ) == null ? installResource . getName ( ) : sr . getShortName ( ) ; } else { resourceName = installResource . getName ( ) ; } fireProgressEvent ( state , progress , Messages . INSTALL_KERNEL_MESSAGES . getLogMessage ( messageKey , resourceName ) ) ; }
Fires a progress event message to be displayed