org.eclipse.xtext.builder.clustering.ClusteringBuilderState Java Examples
The following examples show how to use
org.eclipse.xtext.builder.clustering.ClusteringBuilderState.
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: N4JSClusteringBuilderConfiguration.java From n4js with Eclipse Public License 1.0 | 6 votes |
@Override protected void configure() { bind(IResourceClusteringPolicy.class).to(VerboseClusteringPolicy.class); bind(XtextBuilder.class).to(N4JSBuildTypeTrackingBuilder.class); bind(IBuilderState.class).to(N4JSGenerateImmediatelyBuilderState.class).in(Scopes.SINGLETON); bind(IMarkerUpdater.class).to(N4JSMarkerUpdater.class); bind(IStorage2UriMapper.class).to(N4JSStorage2UriMapper.class); bind(PersistedStateProvider.class).to(ContributingResourceDescriptionPersister.class); bind(IBuildLogger.class).annotatedWith(BuilderState.class).to(BuilderStateLogger.class); bind(DirtyStateManager.class).to(PrevStateAwareDirtyStateManager.class); bind(IResourceLoader.class).annotatedWith( Names.named(ClusteringBuilderState.RESOURCELOADER_GLOBAL_INDEX)).toProvider( new BuildScopeAwareParallelLoaderProvider()); bind(BuilderStateDiscarder.class); bind(SharedStateContributionRegistryImpl.class).to(DefaultSharedContributionOverridingRegistry.class); binder().install(new MyReferenceSearchResultContentProviderCustomModule()); }
Example #2
Source File: PersistableResourceDescriptionsTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Before public void setUp() throws Exception { fileSystem = Maps.newHashMap(); builderState = builderInjector.getInstance(ClusteringBuilderState.class); uriConverter = new ExtensibleURIConverterImpl() { @Override public InputStream createInputStream(org.eclipse.emf.common.util.URI uri, Map<?, ?> options) throws IOException { return new StringInputStream(fileSystem.get(uri.toString())); } }; }
Example #3
Source File: Bug349445Test.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Before public void setUp() throws Exception { injector = Guice.createInjector(Modules2.mixin(new SharedModule(null), new AbstractModule() { @Override protected void configure() { bind(PersistedStateProvider.class).toInstance(Bug349445Test.this); bind(IMarkerUpdater.class).toInstance(Bug349445Test.this); bind(IResourceServiceProvider.Registry.class).toInstance(Bug349445Test.this); } })); loadCalled = 0; testMe = injector.getInstance(ClusteringBuilderState.class); }
Example #4
Source File: OverridingModule.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void configure(final Binder binder) { super.configure(binder); binder.bind(IResourceLoader.class) .annotatedWith(Names.named(ClusteringBuilderState.RESOURCELOADER_GLOBAL_INDEX)) .toProvider(ResourceLoaderProviders.getParallelLoader(8, 8)); binder.bind(IResourceLoader.class) .annotatedWith(Names.named(ClusteringBuilderState.RESOURCELOADER_CROSS_LINKING)) .toProvider(ResourceLoaderProviders.getParallelLoader(8, 8)); }