| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| */ |
| package org.eclipse.osbp.dsl.dto.xtext.ide; |
| |
| import com.google.inject.Binder; |
| import com.google.inject.name.Names; |
| import org.eclipse.osbp.dsl.dto.xtext.ide.contentassist.antlr.DtoGrammarParser; |
| import org.eclipse.osbp.dsl.dto.xtext.ide.contentassist.antlr.internal.InternalDtoGrammarLexer; |
| import org.eclipse.xtext.ide.LexerIdeBindings; |
| import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher; |
| import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher; |
| import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper; |
| import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper; |
| import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; |
| import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; |
| import org.eclipse.xtext.xbase.ide.DefaultXbaseIdeModule; |
| |
| /** |
| * Manual modifications go to {@link DtoGrammarIdeModule}. |
| */ |
| @SuppressWarnings("all") |
| public abstract class AbstractDtoGrammarIdeModule extends DefaultXbaseIdeModule { |
| |
| // 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(InternalDtoGrammarLexer.class); |
| } |
| |
| // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 |
| public Class<? extends IContentAssistParser> bindIContentAssistParser() { |
| return DtoGrammarParser.class; |
| } |
| |
| // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 |
| public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { |
| return AntlrProposalConflictHelper.class; |
| } |
| |
| // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 |
| public Class<? extends IPrefixMatcher> bindIPrefixMatcher() { |
| return FQNPrefixMatcher.class; |
| } |
| |
| } |