org.eclipse.xtext.ide.ExecutorServiceProvider Java Examples

The following examples show how to use org.eclipse.xtext.ide.ExecutorServiceProvider. 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: ServerModule.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configure() {
	binder().bind(ExecutorService.class).toProvider(ExecutorServiceProvider.class);

	bind(LanguageServer.class).to(LanguageServerImpl.class);
	bind(IResourceServiceProvider.Registry.class).toProvider(ResourceServiceProviderServiceLoader.class);
	bind(IMultiRootWorkspaceConfigFactory.class).to(MultiRootWorkspaceConfigFactory.class);
	bind(IProjectDescriptionFactory.class).to(DefaultProjectDescriptionFactory.class);
	bind(IContainer.Manager.class).to(ProjectDescriptionBasedContainerManager.class);
}
 
Example #2
Source File: RuntimeServerModule.java    From openhab-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configure() {
    binder().bind(ExecutorService.class).toProvider(ExecutorServiceProvider.class);

    bind(UriExtensions.class).toInstance(new MappingUriExtensions(ConfigConstants.getConfigFolder()));
    bind(LanguageServer.class).to(LanguageServerImpl.class);
    bind(IResourceServiceProvider.Registry.class).toProvider(new RegistryProvider(scriptServiceUtil, scriptEngine));
    bind(IWorkspaceConfigFactory.class).to(ProjectWorkspaceConfigFactory.class);
    bind(IProjectDescriptionFactory.class).to(DefaultProjectDescriptionFactory.class);
    bind(IContainer.Manager.class).to(ProjectDescriptionBasedContainerManager.class);
    bind(ILanguageServerShutdownAndExitHandler.class).to(ILanguageServerShutdownAndExitHandler.NullImpl.class);
}
 
Example #3
Source File: RuntimeServerModule.java    From smarthome with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void configure() {
    binder().bind(ExecutorService.class).toProvider(ExecutorServiceProvider.class);

    bind(UriExtensions.class).toInstance(new MappingUriExtensions(ConfigConstants.getConfigFolder()));
    bind(LanguageServer.class).to(LanguageServerImpl.class);
    bind(IResourceServiceProvider.Registry.class).toProvider(new RegistryProvider(scriptServiceUtil, scriptEngine));
    bind(IWorkspaceConfigFactory.class).to(ProjectWorkspaceConfigFactory.class);
    bind(IProjectDescriptionFactory.class).to(DefaultProjectDescriptionFactory.class);
    bind(IContainer.Manager.class).to(ProjectDescriptionBasedContainerManager.class);
}
 
Example #4
Source File: XtextWebDocumentAccess.java    From xtext-web with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
protected void setExecutorServiceProvider(ExecutorServiceProvider executorServiceProvider) {
	executorService1 = executorServiceProvider.get(XtextWebDocumentAccess.DOCUMENT_LOCK_EXECUTOR);
	executorService2 = executorServiceProvider.get();
}