public void fireDownloadProgressEvent ( int progress , RepositoryResource installResource ) throws InstallException { if ( installResource . getType ( ) . equals ( ResourceType . FEATURE ) ) { Visibility v = ( ( EsaResource ) installResource ) . getVisibility ( ) ; if ( v . equals ( Visibility . PUBLIC ) || v . equals ( Visibility . INSTALL ) ) { EsaResource esar = ( EsaResource ) installResource ; String resourceName = ( esar . getShortName ( ) == null ) ? installResource . getName ( ) : esar . getShortName ( ) ; fireProgressEvent ( InstallProgressEvent . DOWNLOAD , progress , Messages . INSTALL_KERNEL_MESSAGES . getLogMessage ( "STATE_DOWNLOADING" , resourceName ) , true ) ; } else if ( ! firePublicAssetOnly ) { fireProgressEvent ( InstallProgressEvent . DOWNLOAD , progress , Messages . INSTALL_KERNEL_MESSAGES . getLogMessage ( "STATE_DOWNLOADING_DEPENDENCY" ) , true ) ; } } else if ( installResource . getType ( ) . equals ( ResourceType . PRODUCTSAMPLE ) || installResource . getType ( ) . equals ( ResourceType . OPENSOURCE ) ) { fireProgressEvent ( InstallProgressEvent . DOWNLOAD , progress , Messages . INSTALL_KERNEL_MESSAGES . getLogMessage ( "STATE_DOWNLOADING" , installResource . getName ( ) ) , true ) ; } }
Fires a download progress event to be displayed