/* * generated by Xtext 2.26.0 */ package com.minres.rdl.ui; import com.google.inject.Binder; import com.google.inject.Provider; import com.google.inject.name.Names; import com.minres.rdl.ide.contentassist.antlr.PartialRDLContentAssistParser; import com.minres.rdl.ide.contentassist.antlr.RDLParser; import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLLexer; import com.minres.rdl.ui.contentassist.RDLProposalProvider; import com.minres.rdl.ui.labeling.RDLDescriptionLabelProvider; import com.minres.rdl.ui.labeling.RDLLabelProvider; import com.minres.rdl.ui.outline.RDLOutlineTreeProvider; import com.minres.rdl.ui.quickfix.RDLQuickfixProvider; import com.minres.rdl.validation.RDLValidatorConfigurationBlock; import org.eclipse.compare.IViewerCreator; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.eclipse.xtext.builder.BuilderParticipant; import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider; import org.eclipse.xtext.builder.IXtextBuilderParticipant; import org.eclipse.xtext.builder.builderState.IBuilderState; import org.eclipse.xtext.builder.clustering.CurrentDescriptions; import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource; import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback; import org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess; import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider; import org.eclipse.xtext.ide.LexerIdeBindings; import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser; import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; import org.eclipse.xtext.parser.antlr.ITokenDefProvider; import org.eclipse.xtext.parser.antlr.LexerProvider; import org.eclipse.xtext.resource.IResourceDescriptions; import org.eclipse.xtext.resource.containers.IAllContainersState; import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; import org.eclipse.xtext.service.SingletonBinding; import org.eclipse.xtext.ui.DefaultUiModule; import org.eclipse.xtext.ui.UIBindings; import org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator; import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialEditingContentAssistContextFactory; import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.PartialEditingContentAssistContextFactory; import org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage; import org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration; import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar; import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry; import org.eclipse.xtext.ui.compare.DefaultViewerCreator; import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource; import org.eclipse.xtext.ui.editor.IXtextEditorCallback; import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher; import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider; import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper; import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher; import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper; import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory; import org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory; import org.eclipse.xtext.ui.editor.formatting2.ContentFormatterFactory; import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider; import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer; import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; import org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage; import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator; import org.eclipse.xtext.ui.refactoring.IReferenceUpdater; import org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider; import org.eclipse.xtext.ui.refactoring.IRenameStrategy; import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator; import org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater; import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider; import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy; import org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport; import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport; import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences; import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider; import org.eclipse.xtext.ui.shared.Access; import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock; import org.eclipse.xtext.ui.wizard.IProjectCreator; import org.eclipse.xtext.ui.wizard.template.DefaultTemplateProjectCreator; /** * Manual modifications go to {@link RDLUiModule}. */ @SuppressWarnings("all") public abstract class AbstractRDLUiModule extends DefaultUiModule { public AbstractRDLUiModule(AbstractUIPlugin plugin) { super(plugin); } // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment public Provider provideIAllContainersState() { return Access.getJavaProjectsState(); } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public Class bindIProposalConflictHelper() { return AntlrProposalConflictHelper.class; } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalRDLLexer.class); } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(com.minres.rdl.parser.antlr.internal.InternalRDLLexer.class); } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public void configureHighlightingTokenDefProvider(Binder binder) { binder.bind(ITokenDefProvider.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(AntlrTokenDefProvider.class); } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public Class bindContentAssistContext$Factory() { return DelegatingContentAssistContextFactory.class; } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public Class bindIContentAssistParser() { return RDLParser.class; } // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 public void configureContentAssistLexerProvider(Binder binder) { binder.bind(InternalRDLLexer.class).toProvider(LexerProvider.create(InternalRDLLexer.class)); } // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 public Class bindAbstractValidatorConfigurationBlock() { return RDLValidatorConfigurationBlock.class; } // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 public Class bindPrefixMatcher() { return FQNPrefixMatcher.class; } // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 public void configureIResourceDescriptionsBuilderScope(Binder binder) { binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class); } // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 public Class bindIXtextEditorCallback() { return NatureAddingEditorCallback.class; } // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 public Class bindIContextualOutputConfigurationProvider() { return EclipseOutputConfigurationProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 public void configureIResourceDescriptionsPersisted(Binder binder) { binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); } // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 public Class bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; } // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 public Class bindIXtextBuilderParticipant() { return BuilderParticipant.class; } // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 public IWorkspaceRoot bindIWorkspaceRootToInstance() { return ResourcesPlugin.getWorkspace().getRoot(); } // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); } // contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2 public Class bindIContentFormatterFactory() { return ContentFormatterFactory.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 public Class bindILabelProvider() { return RDLLabelProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 public void configureResourceUIServiceLabelProvider(Binder binder) { binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(RDLDescriptionLabelProvider.class); } // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 public Class bindIOutlineTreeProvider() { return RDLOutlineTreeProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 public Class bindIOutlineTreeStructureProvider() { return RDLOutlineTreeProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2 public Class bindIssueResolutionProvider() { return RDLQuickfixProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2 public Class bindIContentProposalProvider() { return RDLProposalProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); } // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 public Class bindIRenameStrategy() { return DefaultRenameStrategy.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 public Class bindIReferenceUpdater() { return DefaultReferenceUpdater.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 public Class bindIRenameRefactoringProvider() { return DefaultRenameRefactoringProvider.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 public Class bindIRenameSupport$Factory() { return DefaultRenameSupport.Factory.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 public Provider provideTemplatesLanguageConfiguration() { return AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 public Provider provideLanguageRegistry() { return AccessibleCodetemplatesActivator.getLanguageRegistry(); } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 @SingletonBinding(eager=true) public Class bindLanguageRegistrar() { return LanguageRegistrar.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 public Class bindXtextTemplatePreferencePage() { return AdvancedTemplatesPreferencePage.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 public Class bindIPartialEditingContentAssistParser() { return PartialRDLContentAssistParser.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 public Class bindIPartialEditingContentAssistContextFactory() { return PartialEditingContentAssistContextFactory.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 public Class bindIViewerCreator() { return DefaultViewerCreator.class; } // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 public void configureCompareViewerTitle(Binder binder) { binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("RDL Compare"); } // contributed by org.eclipse.xtext.xtext.generator.ui.projectWizard.TemplateProjectWizardFragment public Class bindIProjectCreator() { return DefaultTemplateProjectCreator.class; } // contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2 public Class bindIDependentElementsCalculator() { return DefaultDependentElementsCalculator.class; } }