org.eclipse.xtext.resource.impl.LiveShadowedResourceDescriptions Java Examples
The following examples show how to use
org.eclipse.xtext.resource.impl.LiveShadowedResourceDescriptions.
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: SharedStateModule.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * @since 2.8 */ public void configureResourceDescriptionsProvider(Binder binder) { if (Activator.isJavaEnabled()) { binder.install(new ResourceDescriptionsProviderModule()); } else { binder.bind(ResourceDescriptionsProvider.class).in(Scopes.SINGLETON); } binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)) .to(LiveShadowedResourceDescriptions.class); binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)) .to(CurrentDescriptions.ResourceSetAware.class); binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); }
Example #2
Source File: ContainerStateProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public IAllContainersState get(IResourceDescriptions context) { if (context instanceof LiveShadowedResourceDescriptions) { IResourceDescriptions local = ((LiveShadowedResourceDescriptions) context).getLocalDescriptions(); return liveShadowedAllContainerStateProvider.get(local, containerState); } return containerState; }
Example #3
Source File: SharedCommonTypesModule.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
public void configure(Binder binder) { binder.bind(IEObjectHoverProvider.class).to(JdtHoverProvider.class); binder.bind(IEObjectHoverDocumentationProvider.class).to(JdtHoverDocumentationProvider.class); binder.bind(IResourceServiceProvider.class).to(SharedCommonTypesResourceServiceProvider.class); binder.bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class); binder.bindConstant().annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).to("java"); binder.bind(IQualifiedNameProvider.class).to(JvmIdentifiableQualifiedNameProvider.class); binder.bind(ICopyQualifiedNameService.class).to(DefaultCopyQualifiedNameService.class); binder.bind(IJvmTypeProvider.Factory.class).to(JdtTypeProviderFactory.class); binder.bind(IRenameRefactoringProvider.class).to(DefaultRenameRefactoringProvider.class); binder.bind(AbstractRenameProcessor.class).to(JvmMemberRenameProcessor.class); binder.bind(IRenameStrategy.Provider.class).to(JvmMemberRenameStrategy.Provider.class); binder.bind(RefactoringResourceSetProvider.class).to(JvmRefactoringResourceSetProvider.class); binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("Java"); binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)) .to(LiveShadowedResourceDescriptions.class); binder.bind(IResourceDescriptions.class) .annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)) .to(CurrentDescriptions.ResourceSetAware.class); binder.bind(IResourceDescriptions.class) .annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)) .to(IBuilderState.class); binder.bind(IWorkspaceRoot.class).toInstance(ResourcesPlugin.getWorkspace().getRoot()); binder.bind(ITraceForStorageProvider.class).to(TraceForStorageProvider.class); binder.bind(IReferenceUpdater.class).to(NullReferenceUpdater.class); }
Example #4
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.1 */ public void configureIResourceDescriptionsLiveScope(Binder binder) { binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)) .to(LiveShadowedResourceDescriptions.class); }
Example #5
Source File: PartialSerializationTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@Override public void configureIResourceDescriptionsLiveScope(Binder binder) { binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)).to( LiveShadowedResourceDescriptions.class); }
Example #6
Source File: FileAwareTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public void configureIResourceDescriptionsLiveScope(Binder binder) { binder.bind(IResourceDescriptions.class) .annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)) .to(LiveShadowedResourceDescriptions.class); }
Example #7
Source File: EcoreRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public void configureIResourceDescriptionsLiveScope(Binder binder) { binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)) .to(LiveShadowedResourceDescriptions.class); }