protected void loadSARLFiles ( ResourceSet resourceSet , IProgressMonitor progress ) { assert progress != null ; progress . subTask ( Messages . SarlBatchCompiler_54 ) ; this . encodingProvider . setDefaultEncoding ( getFileEncoding ( ) ) ; final NameBasedFilter nameBasedFilter = new NameBasedFilter ( ) ; nameBasedFilter . setExtension ( this . fileExtensionProvider . getPrimaryFileExtension ( ) ) ; final PathTraverser pathTraverser = new PathTraverser ( ) ; final List < String > sourcePathDirectories = getSourcePathStrings ( ) ; if ( progress . isCanceled ( ) ) { return ; } final Multimap < String , org . eclipse . emf . common . util . URI > pathes = pathTraverser . resolvePathes ( sourcePathDirectories , input -> nameBasedFilter . matches ( input ) ) ; if ( progress . isCanceled ( ) ) { return ; } for ( final String source : pathes . keySet ( ) ) { for ( final org . eclipse . emf . common . util . URI uri : pathes . get ( source ) ) { if ( progress . isCanceled ( ) ) { return ; } if ( getLogger ( ) . isDebugEnabled ( ) ) { getLogger ( ) . debug ( Messages . SarlBatchCompiler_7 , uri ) ; } resourceSet . getResource ( uri , true ) ; } } }
Load the SARL files in the given resource set .