public Map < String , Collection < String > > getInstalledAssetNames ( ) { if ( installAssets == null ) return null ; Map < String , Collection < String > > installed = new HashMap < String , Collection < String > > ( ) ; Collection < String > installedAddons = new ArrayList < String > ( ) ; Collection < String > installedFeatures = new ArrayList < String > ( ) ; Collection < String > installedFixes = new ArrayList < String > ( ) ; Collection < String > installedSamples = new ArrayList < String > ( ) ; Collection < String > installedOpenSources = new ArrayList < String > ( ) ; for ( List < InstallAsset > iaList : installAssets ) { for ( InstallAsset asset : iaList ) { if ( asset . isFeature ( ) ) { ESAAsset esa = ( ESAAsset ) asset ; if ( esa . isPublic ( ) ) { String esaName = esa . getShortName ( ) ; if ( esaName == null || esaName . isEmpty ( ) ) esaName = esa . getFeatureName ( ) ; if ( esa . isAddon ( ) ) installedAddons . add ( esaName ) ; else installedFeatures . add ( esaName ) ; } } else if ( asset . isFix ( ) ) { installedFixes . add ( asset . toString ( ) ) ; } else if ( asset . isSample ( ) ) { installedSamples . add ( asset . toString ( ) ) ; } else if ( asset . isOpenSource ( ) ) { installedOpenSources . add ( asset . toString ( ) ) ; } } } installed . put ( InstallConstants . ADDON , installedAddons ) ; installed . put ( InstallConstants . FEATURE , installedFeatures ) ; installed . put ( InstallConstants . IFIX , installedFixes ) ; installed . put ( InstallConstants . SAMPLE , installedSamples ) ; installed . put ( InstallConstants . OPENSOURCE , installedOpenSources ) ; return installed ; }
Gets the names of assets inside installAssets