1 | |
---|
2 | /* |
---|
3 | * generated by Xtext |
---|
4 | */ |
---|
5 | package de.ugoe.cs.swe.bnftools.ui; |
---|
6 | |
---|
7 | import org.eclipse.xtext.ui.DefaultUiModule; |
---|
8 | import org.eclipse.ui.plugin.AbstractUIPlugin; |
---|
9 | |
---|
10 | /** |
---|
11 | * Manual modifications go to {de.ugoe.cs.swe.bnftools.ui.EbnfUiModule} |
---|
12 | */ |
---|
13 | @SuppressWarnings("all") |
---|
14 | public abstract class AbstractEbnfUiModule extends DefaultUiModule { |
---|
15 | |
---|
16 | public AbstractEbnfUiModule(AbstractUIPlugin plugin) { |
---|
17 | super(plugin); |
---|
18 | } |
---|
19 | |
---|
20 | |
---|
21 | // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment |
---|
22 | public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() { |
---|
23 | return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState(); |
---|
24 | } |
---|
25 | |
---|
26 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
---|
27 | public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() { |
---|
28 | return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class; |
---|
29 | } |
---|
30 | |
---|
31 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
---|
32 | public void configureHighlightingLexer(com.google.inject.Binder binder) { |
---|
33 | binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(de.ugoe.cs.swe.bnftools.parser.antlr.internal.InternalEbnfLexer.class); |
---|
34 | } |
---|
35 | |
---|
36 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment |
---|
37 | public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) { |
---|
38 | 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); |
---|
39 | } |
---|
40 | |
---|
41 | // contributed by org.eclipse.xtext.generator.exporting.SimpleNamesFragment |
---|
42 | public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() { |
---|
43 | return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; |
---|
44 | } |
---|
45 | |
---|
46 | // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
---|
47 | public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() { |
---|
48 | return org.eclipse.xtext.builder.BuilderParticipant.class; |
---|
49 | } |
---|
50 | |
---|
51 | // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
---|
52 | public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() { |
---|
53 | return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot(); |
---|
54 | } |
---|
55 | |
---|
56 | // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment |
---|
57 | public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) { |
---|
58 | 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); |
---|
59 | } |
---|
60 | |
---|
61 | // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment |
---|
62 | public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() { |
---|
63 | return de.ugoe.cs.swe.bnftools.ui.labeling.EbnfLabelProvider.class; |
---|
64 | } |
---|
65 | |
---|
66 | // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment |
---|
67 | public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) { |
---|
68 | binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(de.ugoe.cs.swe.bnftools.ui.labeling.EbnfDescriptionLabelProvider.class); |
---|
69 | } |
---|
70 | |
---|
71 | // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment |
---|
72 | public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() { |
---|
73 | return de.ugoe.cs.swe.bnftools.ui.outline.EbnfOutlineTreeProvider.class; |
---|
74 | } |
---|
75 | |
---|
76 | // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment |
---|
77 | public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { |
---|
78 | return de.ugoe.cs.swe.bnftools.ui.outline.EbnfOutlineTreeProvider.class; |
---|
79 | } |
---|
80 | |
---|
81 | // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment |
---|
82 | public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() { |
---|
83 | return de.ugoe.cs.swe.bnftools.ui.quickfix.EbnfQuickfixProvider.class; |
---|
84 | } |
---|
85 | |
---|
86 | // contributed by org.eclipse.xtext.ui.generator.contentAssist.ContentAssistFragment |
---|
87 | public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() { |
---|
88 | return de.ugoe.cs.swe.bnftools.ui.contentassist.EbnfProposalProvider.class; |
---|
89 | } |
---|
90 | |
---|
91 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
---|
92 | public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() { |
---|
93 | return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class; |
---|
94 | } |
---|
95 | |
---|
96 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
---|
97 | public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() { |
---|
98 | return de.ugoe.cs.swe.bnftools.ui.contentassist.antlr.EbnfParser.class; |
---|
99 | } |
---|
100 | |
---|
101 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
---|
102 | public void configureContentAssistLexerProvider(com.google.inject.Binder binder) { |
---|
103 | binder.bind(de.ugoe.cs.swe.bnftools.ui.contentassist.antlr.internal.InternalEbnfLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(de.ugoe.cs.swe.bnftools.ui.contentassist.antlr.internal.InternalEbnfLexer.class)); |
---|
104 | } |
---|
105 | |
---|
106 | // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment |
---|
107 | public void configureContentAssistLexer(com.google.inject.Binder binder) { |
---|
108 | 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(de.ugoe.cs.swe.bnftools.ui.contentassist.antlr.internal.InternalEbnfLexer.class); |
---|
109 | } |
---|
110 | |
---|
111 | // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
---|
112 | public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameStrategy> bindIRenameStrategy() { |
---|
113 | return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy.class; |
---|
114 | } |
---|
115 | |
---|
116 | // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
---|
117 | public Class<? extends org.eclipse.xtext.ui.refactoring.IReferenceUpdater> bindIReferenceUpdater() { |
---|
118 | return org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater.class; |
---|
119 | } |
---|
120 | |
---|
121 | // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
---|
122 | public void configureIPreferenceStoreInitializer(com.google.inject.Binder binder) { |
---|
123 | 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); |
---|
124 | } |
---|
125 | |
---|
126 | // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
---|
127 | public Class<? extends org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider> bindIRenameRefactoringProvider() { |
---|
128 | return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider.class; |
---|
129 | } |
---|
130 | |
---|
131 | // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment |
---|
132 | public Class<? extends org.eclipse.xtext.ui.refactoring.ui.IRenameSupport.Factory> bindIRenameSupport$Factory() { |
---|
133 | return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport.Factory.class; |
---|
134 | } |
---|
135 | |
---|
136 | // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
---|
137 | public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { |
---|
138 | return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); |
---|
139 | } |
---|
140 | |
---|
141 | // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
---|
142 | public com.google.inject.Provider<org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry> provideLanguageRegistry() { |
---|
143 | return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getLanguageRegistry(); |
---|
144 | } |
---|
145 | |
---|
146 | // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
---|
147 | @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar> bindLanguageRegistrar() { |
---|
148 | return org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar.class; |
---|
149 | } |
---|
150 | |
---|
151 | // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
---|
152 | public Class<? extends org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { |
---|
153 | return org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage.class; |
---|
154 | } |
---|
155 | |
---|
156 | // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment |
---|
157 | public Class<? extends org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser> bindIPartialContentAssistParser() { |
---|
158 | return de.ugoe.cs.swe.bnftools.ui.contentassist.antlr.PartialEbnfContentAssistParser.class; |
---|
159 | } |
---|
160 | |
---|
161 | // contributed by org.eclipse.xtext.ui.generator.compare.CompareFragment |
---|
162 | public Class<? extends org.eclipse.compare.IViewerCreator> bindIViewerCreator() { |
---|
163 | return org.eclipse.xtext.ui.compare.DefaultViewerCreator.class; |
---|
164 | } |
---|
165 | |
---|
166 | |
---|
167 | } |
---|