Java Code Examples for org.eclipse.xtext.resource.SynchronizedXtextResourceSet#setClasspathURIContext()
The following examples show how to use
org.eclipse.xtext.resource.SynchronizedXtextResourceSet#setClasspathURIContext() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResourceSetWithBuiltInSchemeProvider.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * Standard constructor used by the injector. */ @Inject public ResourceSetWithBuiltInSchemeProvider( BuiltInSchemeRegistrar registrar, ClassLoader classLoader, UriExtensions uriExtensions) { @SuppressWarnings("hiding") SynchronizedXtextResourceSet resourceSet = new SynchronizedXtextResourceSet(); attachXtextResourceLocator(resourceSet); resourceSet.setClasspathURIContext(classLoader); registrar.registerScheme(resourceSet); resourceSet.setURIConverter(new EmptyAuthorityAddingNormalizer(resourceSet.getURIConverter(), uriExtensions)); this.resourceSet = resourceSet; }
Example 2
Source File: ConfiguredResourceSetProvider.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override public SynchronizedXtextResourceSet get() { SynchronizedXtextResourceSet result = super.get(); result.setClasspathURIContext(classLoader); initialize(result); return result; }
Example 3
Source File: SynchronizedXtextResourceSetProvider.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public SynchronizedXtextResourceSet get() { SynchronizedXtextResourceSet result = new SynchronizedXtextResourceSet(); result.setClasspathURIContext(classLoader); typeProviderFactory.findOrCreateTypeProvider(result); return result; }
Example 4
Source File: SynchronizedXtextResourceSetProvider.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public SynchronizedXtextResourceSet get() { SynchronizedXtextResourceSet result = new SynchronizedXtextResourceSet(); result.setClasspathURIContext(classLoader); typeProviderFactory.findOrCreateTypeProvider(result); return result; }
Example 5
Source File: SynchronizedXtextResourceSetProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public SynchronizedXtextResourceSet get() { SynchronizedXtextResourceSet result = new SynchronizedXtextResourceSet(); result.setClasspathURIContext(classLoader); typeProviderFactory.findOrCreateTypeProvider(result); return result; }