/*******************************************************************************
* Copyright (c) 2011 Sebastian Benz.
* 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:
* Sebastian Benz - initial API and implementation
******************************************************************************/
/*
* generated by Xtext
*/
package de.sebastianbenz.xgherkin.ui;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration;
import org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider;
import org.eclipse.xtext.ui.editor.folding.IFoldingRegionProvider;
import org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper;
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration;
import de.sebastianbenz.xgherkin.ui.autoedit.AutoEditStrategyProvider;
import de.sebastianbenz.xgherkin.ui.editor.FoldingRegionProvider;
import de.sebastianbenz.xgherkin.ui.editor.SourceViewerConfiguration;
import de.sebastianbenz.xgherkin.ui.highlighting.HighlightingConfiguration;
import de.sebastianbenz.xgherkin.ui.highlighting.SemanticHighlightingCalculator;
import de.sebastianbenz.xgherkin.ui.highlighting.TokenHighlightingConfiguration;
/**
* Use this class to register components to be used within the IDE.
*/
public class GherkinUiModule extends de.sebastianbenz.xgherkin.ui.AbstractGherkinUiModule {
public GherkinUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
public Class<? extends org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator> bindISemanticHighlightingCalculator() {
return SemanticHighlightingCalculator.class;
}
public Class<? extends IHighlightingConfiguration> bindIHighlightingConfiguration() {
return HighlightingConfiguration.class;
}
public Class<? extends AbstractAntlrTokenToAttributeIdMapper> bindAbstractAntlrTokenToAttributeIdMapper() {
return TokenHighlightingConfiguration.class;
}
@Override
public Class<? extends AbstractEditStrategyProvider> bindAbstractEditStrategyProvider() {
return AutoEditStrategyProvider.class;
}
public Class<? extends XtextSourceViewerConfiguration> bindXtextSourceViewerConfiguration() {
return SourceViewerConfiguration.class;
}
public Class<? extends IFoldingRegionProvider> bindIFoldingRegionProvider(){
return FoldingRegionProvider.class;
}
}