org.eclipse.xtext.resource.impl.SimpleResourceDescriptionsBasedContainerManager Java Examples
The following examples show how to use
org.eclipse.xtext.resource.impl.SimpleResourceDescriptionsBasedContainerManager.
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: JavaSourceLanguageRuntimeModule.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@Override protected void configure() { bind(Resource.Factory.class).to(JavaResource.Factory.class); bind(IResourceValidator.class).toInstance(IResourceValidator.NULL); bind(IGenerator.class).to(IGenerator.NullGenerator.class); bind(IEncodingProvider.class).to(IEncodingProvider.Runtime.class); bind(IResourceServiceProvider.class).to(JavaResourceServiceProvider.class); bind(IContainer.Manager.class).to(SimpleResourceDescriptionsBasedContainerManager.class); bind(IResourceDescription.Manager.class).to(JavaResourceDescriptionManager.class); bind(IQualifiedNameProvider.class).to(JvmIdentifiableQualifiedNameProvider.class); bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("java"); bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)) .toInstance("org.eclipse.xtext.java.Java"); bind(IJvmTypeProvider.Factory.class).to(ClasspathTypeProviderFactory.class); bind(ClassLoader.class).toInstance(JavaSourceLanguageRuntimeModule.class.getClassLoader()); bind(IReferableElementsUnloader.class).to(IReferableElementsUnloader.GenericUnloader.class); bind(IResourceDescriptionsProvider.class) .toInstance((ResourceSet rs) -> ChunkedResourceDescriptions.findInEmfObject(rs)); }
Example #2
Source File: ProcResourceServiceProvider.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public ProcResourceServiceProvider(ProcResourceDescriptionManager manager) { ProcResourceDescriptionStrategy startegy = new ProcResourceDescriptionStrategy(); resourceDescriptionManager = manager; resourceDescriptionManager.setStrategy(startegy); resourceDescriptionManager.setDescriptionUtils(new DescriptionUtils()); resourceDescriptionManager.setContainerManager(new SimpleResourceDescriptionsBasedContainerManager()); }
Example #3
Source File: BuilderTestLanguageRuntimeModule.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override public Class<? extends Manager> bindIContainer$Manager() { return SimpleResourceDescriptionsBasedContainerManager.class; }
Example #4
Source File: BuilderTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public Class<? extends Manager> bindIContainer$Manager() { return SimpleResourceDescriptionsBasedContainerManager.class; }
Example #5
Source File: DefaultRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IContainer.Manager> bindIContainer$Manager() { return SimpleResourceDescriptionsBasedContainerManager.class; }
Example #6
Source File: ProcResourceServiceProvider.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public ProcResourceServiceProvider(){ ProcResourceDescriptionStrategy startegy = new ProcResourceDescriptionStrategy(); resourceDescriptionManager.setStrategy(startegy); resourceDescriptionManager.setDescriptionUtils(new DescriptionUtils()); resourceDescriptionManager.setContainerManager(new SimpleResourceDescriptionsBasedContainerManager()); }
Example #7
Source File: ConditionModelRuntimeModule.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override public Class<? extends Manager> bindIContainer$Manager() { return SimpleResourceDescriptionsBasedContainerManager.class; }