public Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() { return EclipseOutputConfigurationProvider.class; }
protected URIBasedFileSystemAccess createFileSystemAccess(final IResourceServiceProvider serviceProvider, final Resource resource) { URIBasedFileSystemAccess _xblockexpression = null; { final IProjectConfigProvider projectConfigProvider = serviceProvider.<IProjectConfigProvider>get(IProjectConfigProvider.class); IProjectConfig _projectConfig = null; if (projectConfigProvider!=null) { _projectConfig=projectConfigProvider.getProjectConfig(resource.getResourceSet()); } final IProjectConfig projectConfig = _projectConfig; ISourceFolder _findSourceFolderContaining = null; if (projectConfig!=null) { _findSourceFolderContaining=projectConfig.findSourceFolderContaining(resource.getURI()); } final ISourceFolder sourceFolder = _findSourceFolderContaining; URIBasedFileSystemAccess _uRIBasedFileSystemAccess = new URIBasedFileSystemAccess(); final Procedure1<URIBasedFileSystemAccess> _function = (URIBasedFileSystemAccess it) -> { final IContextualOutputConfigurationProvider outputConfigProvider = serviceProvider.<IContextualOutputConfigurationProvider>get(IContextualOutputConfigurationProvider.class); final Function1<OutputConfiguration, String> _function_1 = (OutputConfiguration it_1) -> { return it_1.getName(); }; it.setOutputConfigurations(IterableExtensions.<String, OutputConfiguration>toMap(outputConfigProvider.getOutputConfigurations(resource), _function_1)); it.setPostProcessor(serviceProvider.<IFilePostProcessor>get(IFilePostProcessor.class)); final IEncodingProvider newEncodingProvider = serviceProvider.<IEncodingProvider>get(IEncodingProvider.class); if ((newEncodingProvider != null)) { it.setEncodingProvider(newEncodingProvider); } it.setTraceFileNameProvider(serviceProvider.<TraceFileNameProvider>get(TraceFileNameProvider.class)); it.setTraceRegionSerializer(serviceProvider.<TraceRegionSerializer>get(TraceRegionSerializer.class)); it.setGenerateTraces(true); it.setBaseDir(this.request.getBaseDir()); String _name = null; if (sourceFolder!=null) { _name=sourceFolder.getName(); } it.setCurrentSource(_name); it.setConverter(resource.getResourceSet().getURIConverter()); }; _xblockexpression = ObjectExtensions.<URIBasedFileSystemAccess>operator_doubleArrow(_uRIBasedFileSystemAccess, _function); } return _xblockexpression; }