| |
| /***************************************************************************** |
| * Copyright (c) 2016 CEA LIST and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * CEA LIST - Initial API and implementation |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.interoperability.rpy.parser.ui; |
| |
| import org.eclipse.ui.plugin.AbstractUIPlugin; |
| |
| /** |
| * Manual modifications go to {org.eclipse.papyrus.interoperability.rpy.parser.ui.RpySyntaxUiModule} |
| */ |
| @SuppressWarnings("all") |
| public abstract class AbstractRpySyntaxUiModule extends org.eclipse.xtext.common.types.ui.DefaultCommonTypesUiModule { |
| |
| public AbstractRpySyntaxUiModule(AbstractUIPlugin plugin) { |
| super(plugin); |
| } |
| |
| |
| // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment |
| public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() { |
| return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState(); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() { |
| return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
| public void configureHighlightingLexer(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.papyrus.interoperability.rpy.parser.parser.antlr.internal.InternalRpySyntaxLexer.class); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
| public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment |
| public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() { |
| return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment |
| public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() { |
| return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment |
| public Class<? extends org.eclipse.xtext.generator.IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() { |
| return org.eclipse.xtext.builder.EclipseOutputConfigurationProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment |
| public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { |
| return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
| public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() { |
| return org.eclipse.xtext.builder.BuilderParticipant.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
| public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() { |
| return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot(); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
| public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer")).to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment |
| public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.labeling.RpySyntaxLabelProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment |
| public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.papyrus.interoperability.rpy.parser.ui.labeling.RpySyntaxDescriptionLabelProvider.class); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.outline.RpySyntaxOutlineTreeProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.outline.RpySyntaxOutlineTreeProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.quickfix.RpySyntaxQuickfixProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.contentAssist.ContentAssistFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.RpySyntaxProposalProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() { |
| return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.antlr.RpySyntaxParser.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
| public void configureContentAssistLexerProvider(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.antlr.internal.InternalRpySyntaxLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.antlr.internal.InternalRpySyntaxLexer.class)); |
| } |
| |
| // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
| public void configureContentAssistLexer(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST)).to(org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.antlr.internal.InternalRpySyntaxLexer.class); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
| public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameStrategy> bindIRenameStrategy() { |
| return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
| public Class<? extends org.eclipse.xtext.ui.refactoring.IReferenceUpdater> bindIReferenceUpdater() { |
| return org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
| public void configureIPreferenceStoreInitializer(com.google.inject.Binder binder) { |
| binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("RefactoringPreferences")).to(org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences.Initializer.class); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
| public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider> bindIRenameRefactoringProvider() { |
| return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
| public Class<? extends org.eclipse.xtext.ui.refactoring.ui.IRenameSupport.Factory> bindIRenameSupport$Factory() { |
| return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport.Factory.class; |
| } |
| |
| // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() { |
| return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
| public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { |
| return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
| public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry> provideLanguageRegistry() { |
| return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getLanguageRegistry(); |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
| @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar> bindLanguageRegistrar() { |
| return org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { |
| return org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
| public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser> bindIPartialContentAssistParser() { |
| return org.eclipse.papyrus.interoperability.rpy.parser.ui.contentassist.antlr.PartialRpySyntaxContentAssistParser.class; |
| } |
| |
| // contributed by org.eclipse.xtext.ui.generator.compare.CompareFragment |
| public Class<? extends org.eclipse.compare.IViewerCreator> bindIViewerCreator() { |
| return org.eclipse.xtext.ui.compare.DefaultViewerCreator.class; |
| } |
| |
| |
| } |